Dear gophers,

I use feature detection and t.Skip for some of my tests, e.g. if 
!featureXPresent { t.Skip("feature X is not present" }
which works well, but when running the tests I would like 'go test' to 
remind me that some tests were skipped.

The only way I've found of listing the skipped tests is to run: go test -v 
./... | grep 'SKIP'
but this is clunky and hides the rest of the test output.

Is there a better way of doing this?

What I would *really* like though is a short summary of what was tested as 
part of the output from 'go test'.  For example:

ok      github.com/quru/foo/pkg/a    0.004s    [3 passed]
?       github.com/quru/foo/pkg/b    [no test files]
ok      github.com/quru/foo/pkg/c    0.010s    [10 passed, 2 skipped]

Regards,
Matt

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to