Closed kaka0950 closed 6 years ago
Can you give an example showing the test output and generated XML?
test output ok something.com/services/name1 6.089s ok something.com/name2 0.402s
generated XML is <?xml version="1.0" encoding="UTF-8"?>
I don't see any individual test output, how are you running the go test command? Did you specify the -v
flag?
this 2 lines are the test output ok something.com/services/name1 6.089s ok something.com/name2 0.402s
no i do not use -v flag since it reports some failed tests which should not be reported
cat testouput.out | path/bin/go-junit-report -set-exit-code >> folder/report.xml
go-junit-report needs the additional information that is present when you run go test with the -v
flag, otherwise the output doesn't contain the information needed to generate the individual testcases in the output report.
When there is no test fail, there is no testcase node at all.