Skip to content
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

proposal: testing: flag show skipped #34306

mvndaai opened this issue Sep 15, 2019 · 2 comments


Copy link

commented Sep 15, 2019

I would love if there was a flag for go test that was somewhere between normal and verbose that only showed failures and skips.

go test ./... hides that tests were skipped

go test -v ./... show too much so I miss things

It would be lovely to have something like go test -showSkipped ./... that still shows things like

=== RUN   TestMarkReviewed
--- SKIP: TestMarkReviewed (3.52s)
    flagged_test.go:133: Skipping integration test because a mongo db is not available]

but ignores

=== RUN   TestFlaggedThread
--- PASS: TestFlaggedThread (0.00s)
@gopherbot gopherbot added this to the Proposal milestone Sep 15, 2019
@gopherbot gopherbot added the Proposal label Sep 15, 2019

This comment has been minimized.

Copy link

commented Sep 15, 2019

While I agree that this is generally useful, this can be accomplished with little effort today:

$ go test -v ./... | grep -E '--- (SKIP|FAIL)'

If you need anything fancier, you could also write a short wrapper around go test -json ./.... It could only keep results that are either SKIP or FAIL, for example. Or it could even error if anything was skipped, in a "don't allow skips" mode.


This comment has been minimized.

Copy link

commented Sep 17, 2019

See also #25951.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
4 participants
You can’t perform that action at this time.