Closed arthurvaverko-kaltura closed 2 years ago
I have browsed the code .. and saw that parser will grab the output .. then I saw this ..
Why don't allow printing the output even during success ?
I currently employ this long-winded workaround to see the raw logs on errors (I could also look into the reportXML; but the mails CI sends out contain the logs which for me are much faster to see what broke).
EXIT_CODE=0
go test -v ./... 2>&1 > testoutput.txt || EXIT_CODE=$?
cat testoutput.txt
cat testoutput.txt | go-junit-report > report.xml
exit $EXIT_CODE
This has been fixed in commit d2592490b6d4cb2fcad75df1df1a08b3bab121ac and will be included in the next v2 release.
After tests are finished I can see the final result but I cannot see any log output using
t.log
method from the test ..I ran the following
go test -v ./... 2>&1 | go-junit-report > result.xml
I can see all my logs clearly when not piping into go-junit-report
But inside the xml there are none..
Is it supported ?