-
Notifications
You must be signed in to change notification settings - Fork 1.1k
gnd(test): Add mock-based subgraph test runner #6361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dimitrovmaksim
merged 40 commits into
graphprotocol:master
from
dimitrovmaksim:feat/gnd-cli-test-rewrite
Feb 26, 2026
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
0260805
gnd(test): Migrate from monolithic test.rs to modular test/ structure
dimitrovmaksim 25e5f5b
gnd(test): Add remaining test module files
dimitrovmaksim 48cc6a8
gnd(test): Update module structure with new submodules
dimitrovmaksim 333581c
gnd(test): Refactor runner.rs for readability - remove extracted code
dimitrovmaksim 63d2345
gnd(test): Extract GraphQL assertion logic to dedicated module
dimitrovmaksim 77956f2
gnd(test): Extract noop/stub trait implementations to dedicated module
dimitrovmaksim 3099684
gnd(test): Add eth_call mocking and refactor test output
dimitrovmaksim 665f072
gnd(test): Add EIP-1559 base fee support and refactor block creation
dimitrovmaksim 8c6249e
gnd(test): Simplify test schema by auto-injecting block triggers
dimitrovmaksim 038416a
gnd(test): Add support for manifests with startBlock > 0
dimitrovmaksim 85fc735
gnd(test): Fix issues after rebase
dimitrovmaksim 05ab2c5
gnd(test): Fix matchstick path
dimitrovmaksim 3512429
gnd(test): Reuse load_manifest()
dimitrovmaksim 448aadb
gnd(test): Add README, add important inline notes
dimitrovmaksim cd3992d
gnd: Fix missing fields, update readme
dimitrovmaksim 6946165
gnd(test): Refactor CLI to accept test files/dirs as positional args
dimitrovmaksim 0ddc69c
gnd(test): Fix diff colors — red for expected, green for actual
dimitrovmaksim 14f141b
gnd(test): Support Array, FixedArray, and Tuple in Solidity type conv…
dimitrovmaksim ccbbed7
gnd(test): Recurse into subdirectories when discovering test files
dimitrovmaksim 83fed7a
gnd(test): Validate eth_call parameter and return value counts
dimitrovmaksim 9ab1baf
gnd(test): Ensure subgraph cleanup and remove FilterStoreEventEndedDrain
dimitrovmaksim 8cfb64d
gnd(test): Validate datasource name to prevent shell injection in Doc…
dimitrovmaksim fc66da3
gnd(test): Replace unwrap/unimplemented with proper error handling
dimitrovmaksim 54eab56
gnd(test): Fix ServerAddress initialization
dimitrovmaksim 06ff5a7
gnd(test): Add verbose logging flag and extract manifest loading
dimitrovmaksim 251bae9
gnd(test): Add integration test harness with pgtemp fixes
dimitrovmaksim dd9e18f
gnd(compiler): Look for asc binary in local if global does not exist.
dimitrovmaksim 007aedb
gnd(test): Use --postgres-url for tests
dimitrovmaksim 6e1c829
gnd(test): Fix test cleanup for --postgres-url
dimitrovmaksim 5091829
gnd(test): Replace TempPgHandle with TestDatabase enum
dimitrovmaksim 0cd9b5a
gnd(test): Clean up persistent DB state after each test
dimitrovmaksim 24d45cd
gnd(test): Use Qm-prefixed SHA-1 hash as deployment hash
dimitrovmaksim 0c4c50a
gnd(test): Fix stale docs after pre-test cleanup removal
dimitrovmaksim 9bc4397
gnd(test): Rename and move README into docs/
dimitrovmaksim 1c40079
gnd(test): Simplify TestResult, remove baseFeePerGas, fix timestamp d…
dimitrovmaksim 9944093
gnd(test): Move docs to correct location under gnd/docs/
dimitrovmaksim 4c6c033
gnd(test): Fix fixture contract address
dimitrovmaksim 521379c
gnd(test): Fix AnyTxEnvelope and AnyHeader types in trigger.rs
dimitrovmaksim 1093860
gnd(test): Address PR review comments
dimitrovmaksim 6a8fae9
gnd(test): Document lowercase hex requirement for assertions
dimitrovmaksim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to communicate somehow that we want to get rid of Matchstick and give people a bit of time to migrate their tests - it really feels like nobody is using it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add a warn notification when using matchstick, also add a note about that in the docs.