Closed bb-dsa closed 2 years ago
You should add the -v
flag to the go test
command, e.g. go test -v -coverprofile=...etc
. Without this flag no output is generated for passing tests, and go-junit-report won't be able to include them in the report.
I'm executing the test for my Go application in the following way:
go test -coverprofile=.build/coverage.txt -covermode count ./... 2>&1 | go-junit-report > .build/test-report.xml
Without piping it to go-junit-report the following is printed on the console:
However, the result XML file generated by go-junit-report states that no tests have been executed:
What do I have to change to get the expected output?