-
Notifications
You must be signed in to change notification settings - Fork 375
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
test(gnovm): "*_filetest.gno" instructions #1023
Merged
moul
merged 9 commits into
gnolang:master
from
tbruyelle:tbruyelle/test/filetest-instructions
Aug 12, 2023
Merged
test(gnovm): "*_filetest.gno" instructions #1023
moul
merged 9 commits into
gnolang:master
from
tbruyelle:tbruyelle/test/filetest-instructions
Aug 12, 2023
Commits on Aug 11, 2023
-
test(gnovm): "*_filetest.gno" instructions
Add tests for Output, Error and Realm instructions The change introduces a new test dependency github.com/rogpeppe/go-internal/testscripts, which allows to create tests bases on txtar files. This is very handy for this kind of tests, because: - you can easily creates a set of files that can be used for a command (here the `gno test` command) - you can assert stderr and stdout expectations in a very readable and maintainable way - you can compare files using the `cmp` command, which is very useful to assert of the `-update-golden-tests` behavior. These tests were added to help work on gnolang#1015, which will potentially alter the behavior of "*filetest.gno" instructions updates.
Configuration menu - View commit details
-
Copy full SHA for 1e460ae - Browse repository at this point
Copy the full SHA 1e460aeView commit details -
- rename txt to txtar - add comment for '!stdout .+' instruction - use filepath instead of path
Configuration menu - View commit details
-
Copy full SHA for 14b0418 - Browse repository at this point
Copy the full SHA 14b0418View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6113257 - Browse repository at this point
Copy the full SHA 6113257View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5446309 - Browse repository at this point
Copy the full SHA 5446309View commit details -
refac: move testscript in cmd/gno
- use a custom command for "gno" instead of env var - rebase on master so we can use "GNOROOT" instead of "-root-dir"
Configuration menu - View commit details
-
Copy full SHA for 1b1fddf - Browse repository at this point
Copy the full SHA 1b1fddfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 891929d - Browse repository at this point
Copy the full SHA 891929dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2ff5f2 - Browse repository at this point
Copy the full SHA e2ff5f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e553f79 - Browse repository at this point
Copy the full SHA e553f79View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5382a93 - Browse repository at this point
Copy the full SHA 5382a93View commit details
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.