Open Kostanos opened 8 years ago
I found the problem, it is sed that I run after, to clean up the report.
gagarin doesn't make it clean.
This is what I run, and it doesn't work, so any help is welcome.
sed -n '/testsuite name/,$p' xunit.xml.orig > xunit.xml
sed -i 's/^[^<]*//' xunit.xml
This is what works for me as workaround, for those who has the same issue:
sed 's/.*<testsuite /<testsuite /' xunit.xml.orig | sed -n '/testsuite name/,$p' > xunit.xml
I still this task still should be opened, gagarin
should suppress all output when generate xunit report.
@Kostanos This is probably a good idea. What if we had an option for that? So instead of making a guess gagarin
could be instructed not to produce any additional output.
@apendua alternative is to explicitly set the report output file
example: gagarin --reporter xunit --report_output <report filename>
I'm using gagarin
gagarin -T 15000 -t 15000 -m --reporter xunit > xunit.xml
When everything is ok, xunit.xml is with valid format
But if there is error, I got invalid XML.
Ex:
It seems CDATA is not closed