jstemmer / go-junit-report

Convert Go test output to JUnit XML
MIT License
763 stars 222 forks source link

after I use "go test xxx 2>&1 | go-junit-report > result.xml", then the console doesn't print any more information #150

Closed StevenIIV closed 1 year ago

jstemmer commented 1 year ago

What did you expect to see, the output from go test? What version of go-junit-report are you running?

StevenIIV commented 1 year ago

yes, the output from go test, version is V 1.0.0

StevenIIV commented 1 year ago

I'm going to figure out how to put the "go-junit-report > result.xml" into code, so that I can see the output then get the result.xml

jstemmer commented 1 year ago

If you install the latest version (v2.0.0) then you can use the -iocopy flag to see the go test output, e.g.:

go test -v 2>&1 | go-junit-report -iocopy -out report.xml