Closed fho closed 5 years ago
Thanks for reporting. I'll have a look soon-ish.
Try 1.4.9, should fix this
@tebeka thanks for providing the fix!
I tested it with 1.4.9 and the output.txt
from this issue report.
I can confirm that now all tests are in the junit file.
But 6/11 case are now listed in a testsuite with an empty name.
This will make it hard to figure out to which application the testcase belongs if you junit files from multiple testruns are combined.
Any idea why the testsuite name is empty for 6/11 testcases?
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="sisu.sh/go/code/catalog/localizer" tests="5" errors="0" failures="1" skip="0">
<testcase classname="sisu.sh/go/code/catalog/localizer" name="TestFail" time="0.00">
<failure type="go.error" message="error">
<![CDATA[ localizer_test.go:15: YO IM FAILING!]]>
</failure> </testcase>
<testcase classname="sisu.sh/go/code/catalog/localizer" name="TestCurrencyMap" time="0.00">
</testcase>
<testcase classname="sisu.sh/go/code/catalog/localizer" name="TestCountryMap" time="0.00">
</testcase>
<testcase classname="sisu.sh/go/code/catalog/localizer" name="TestLanguagesByCountry" time="0.00">
</testcase>
<testcase classname="sisu.sh/go/code/catalog/localizer" name="TestCountryLanguageCombinations" time="0.00">
</testcase>
</testsuite>
<testsuite name="" tests="6" errors="0" failures="0" skip="0">
<testcase classname="" name="TestNameIsGeneratedCorrectly" time="0.00">
</testcase>
<testcase classname="" name="TestExtractNumericIds" time="0.00">
</testcase>
<testcase classname="" name="TestExtractStringIds" time="0.00">
</testcase>
<testcase classname="" name="TestIntSliceToStringSlice" time="0.00">
</testcase>
<testcase classname="" name="TestGetKeys" time="0.00">
</testcase>
<testcase classname="" name="TestProtoEnumToStringSlice" time="0.00">
</testcase>
</testsuite>
</testsuites>
Thanks for checking. I'll have a look this week.
Fixed in 1.4.10, thanks again
@tebeka thank you for the fix :-)
I run
for one of our applications.
The
output.txt
file contains results for 10 success and 1 failed testcase. The result fromgo2xunit
contains only the result for 5 testcases. 6 testcase results are lost. I would expect that the junit file contains the same amout of testcases then the one printed bygo test
.Files
output.txt junit.xml.txt
Versions
go version go1.11.2 linux/amd64 go2xunit 1.4.8