You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the situation: tests succeed with go test, both on their own and in the embedded go test -json command for gotestsum, but when gotestsum is done, it reports one error where none exists; and what's more it returns with status 0.
# Testing with gotestsum
./bin/gotestsum -f standard-verbose -- -v -count=1 -race ./somepackage
# github.com/someorg/somepackage/some.test
=== RUN TestFoo
=== RUN TestFoo/bar
--- PASS: TestFoo (0.00s)
--- PASS: TestFoo/bar (0.00s)
PASS
ok github.com/someorg/somepackage 2.586s
=== Errors
DONE 2 tests, 1 error in 4.981s
$ echo$?
0
# Testing with go test
$ go test -v -count=1 -race ./somepackage
# github.com/someorg/somepackage/some.test
=== RUN TestFoo
=== RUN TestFoo/bar
--- PASS: TestFoo (0.00s)
--- PASS: TestFoo/bar (0.00s)
PASS
ok github.com/someorg/somepackage 1.636s
$ echo$?
0
Tested on
macOS Sonoma, Apple Silicon.
Both with go 1.22.6 and 1.23.0.
gotestsum version dev
The text was updated successfully, but these errors were encountered:
Hello, thank you for the bug report! Errors come from any stderr that is emitted from the test binary. I don't see any lines in this example. Do you have some code I can run to reproduce?
Here is the situation: tests succeed with
go test
, both on their own and in the embeddedgo test -json
command forgotestsum
, but whengotestsum
is done, it reports one error where none exists; and what's more it returns with status 0.Tested on
dev
The text was updated successfully, but these errors were encountered: