-
Notifications
You must be signed in to change notification settings - Fork 374
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
feat(cmd/gno): move test output within gno code #1594
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1594 +/- ##
==========================================
+ Coverage 55.80% 56.13% +0.33%
==========================================
Files 436 438 +2
Lines 66168 66163 -5
==========================================
+ Hits 36922 37143 +221
+ Misses 26356 26127 -229
- Partials 2890 2893 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
lgtm 👍
Once again, welcome to "I was annoyed by a small thing that I wanted to do a 10 minute fix for and ended up on a refactoring detour". This PR moves the output of the `gno test` function to happen within the gno code. This solves a number of issues: - filtered tests are no longer printed to the console with `--- FILT` (my original 10-minute fix) - test output is no longer buffered - success of subtests is reported correctly - run/success report of subtests goes to stderr instead of stdout - `--- FAIL` is not printed for every time a Fail function is called (ie. only once) - as a bonus, `SkipNow` and `FailNow` actually work, so now you can Skip and Fatal your way out of test functions. Fixes gnolang#665
Once again, welcome to "I was annoyed by a small thing that I wanted to do a 10 minute fix for and ended up on a refactoring detour".
This PR moves the output of the
gno test
function to happen within the gno code. This solves a number of issues:--- FILT
(my original 10-minute fix)--- FAIL
is not printed for every time a Fail function is called (ie. only once)SkipNow
andFailNow
actually work, so now you can Skip and Fatal your way out of test functions.Fixes #665