Open phst opened 4 years ago
I cannot reproduce this with go1.18-8ff254e30b:
=== RUN Test
sand_test.go:6: 1
--- FAIL: Test (0.00s)
FAIL
exit status 1
FAIL example.com/sand2 0.001s
Maybe this got fixed again by a change in Go 1.15 (https://go.dev/doc/go1.15#testing):
go test -v
now groups output by test name, rather than printing the test name on each line.
It's probably still worth adding a unit test to ensure that Emacs correctly parses the test output.
The output of
go test -v
has changed somewhat in Go 1.14. For example, with this/tmp/f/foo_test.go
:the Go 1.13 output is
but the Go 1.14 output is
Note that the error message now has the prefix
Test:
(i.e. test name, colon, space). This is probably related to the change described at https://golang.org/doc/go1.14#go-test. However, thego-test
pattern treats the entireTest: foo_test.go
part as filename.go-test
should be adapted accordingly.