-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins 2.128
xUnit 2.0.3
After upgrade xUnit to version 2.0.3 from 2.0.2 only first configured unit test result is being processed. Other configured test results are ignored.
xUnit 2.0.3:
INFO: Starting to record. INFO: Processing PHPUnit-3.x (default) INFO: [PHPUnit-3.x (default)] - 1 test report file(s) were found with the pattern 'build/logs/junit.xml' relative to '/var/lib/jenkins/jobs/app/workspace' for the testing framework 'PHPUnit-3.x (default)'. INFO: Check 'Failed Tests' threshold. INFO: Check 'Skipped Tests' threshold. INFO: Setting the build status to SUCCESS INFO: Stopping recording.
xUnit 2.0.2:
INFO: Starting to record. INFO: Processing PHPUnit-3.x (default) INFO: [PHPUnit-3.x (default)] - 1 test report file(s) were found with the pattern 'build/logs/junit.xml' relative to '/var/lib/jenkins/jobs/app/workspace' for the testing framework 'PHPUnit-3.x (default)'. INFO: Processing PHPUnit-3.x (default) INFO: [PHPUnit-3.x (default)] - 1 test report file(s) were found with the pattern 'build/codecept/report.xml' relative to '/var/lib/jenkins/jobs/app/workspace' for the testing framework 'PHPUnit-3.x (default)'. INFO: Check 'Failed Tests' threshold. INFO: The total number of tests for this category exceeds the specified "failure" threshold value. INFO: Setting the build status to FAILURE INFO: Stopping recording. Build step 'Publish xUnit test result report' changed build result to FAILURE
It is a freestyle ant build project and for this case I use cumulative test results.
This might be related to JENKINS-47194.