Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52253

xUnit in case of multiple tool type processes only the first one

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xunit-plugin
    • 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.

            nfalco Nikolas Falco
            dukecz Michal Kruzik
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: