-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins ver. 2.89.2
xUnit-Version: 1.102
Jdk:1.8.0_151
Os: Ubuntu 14.04.5 LTS
The published testreport generated by xunit is wrong, if two testname files will result in the same hashcode.
the class org.jenkinsci.plugins.xunit.service.XUnitConversionService uses the following logic, to create temporarily junit-xml files:
File junitTargetFile = new File(parent, JUNIT_FILE_PREFIX + inputFile.hashCode() + JUNIT_FILE_POSTFIX);
in my project, i have two Testclasses that produce the same hash-code.
de.congstar.acceptancetests.aax.templates.komplett.EKOM02XTest
de.congstar.acceptancetests.aax.templates.komplett.EKOM039Test
the temp. generated junit-file for both source junit xml files was:
generatedJUnitFiles/JUnit/TEST-747423851.xml
that occurrs only on the jenkins server that runs on linux - on my local windows pc, the hashcollision does not occurr.
as a result of this name-clash only the results of the last Testclass is reported to jenkins.
it took some amount of time, to track down the problem - could just anyone take a look at this issue?