-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins-1.609.3 & 2.198
Junit-plugin 1.9 & 1.28
gtest to run test & produce xml results
-
-
junit-1.30
If a test case name is present in several packages, and a test is failed in one of the packages, the age of the failure always will be '1'.
Moreover the ext email plugin will send a mail at every run if the regression trigger is configured.
See this simple example of test results:
<testsuites name="AllTests"><testsuite name="foo"><testcase name="ThisTestNameIsDuplicated" classname="package2.test"><failure message="FAILED"/></testcase></testsuite></testsuites>
<testsuites name="AllTests2"><testsuite name="foo"><testcase name="ThisTestNameIsDuplicated" classname="package1.test"/></testsuite></testsuites>
These two test cases :
- package1.test.ThisTestNameIsDuplicated
- package2.test.ThisTestNameIsDuplicated
are displayed properly in Jenkins,
but the age of failure of package2.test.ThisTestNameIsDuplicated will always be 1
after several run of the "tests".
It seems that the classname is not taken into account when computing the age.
- is duplicated by
-
JENKINS-56755 JUnit test report: Age and failedSince are wrong if test method names are not unique
- Resolved
- is related to
-
JENKINS-26136 Claim for failed test disappears when a new build finishes
- Closed