cmd/go/internal/test: compile error for go test
on package with no test files does not output package-level "FAIL" error
#64286
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run
go test ./pkg ./pkg2
on the following directory:go.mod:
pkg/main.go:
package pkg2/main.go (does not compile)
What did you expect to see?
The above is the output that shows up if I add a
pkg2/main_test.go
file with a line `package pkg2 line in the file.What did you see instead?
The
FAIL foo/pkg2 [build failed]
line is missing. This is true in both regular and-json
output formats, which makes it harder to parse the results of CI runs on many packages to see which packages resulted in failures.The text was updated successfully, but these errors were encountered: