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

SkipNoTestFiles flag ignored. Build still set to failed if test files missing

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      Windows Server 2003
    • Similar Issues:

      Description

      I have a parameterised build that allows me to skip the Unit Tests as required, but the build fails when this is used because:

      With the checkboxes:
      "Skip if there are no test files" checked
      "Fail the build if the results were not updated this run" unchecked
      I would expect the absence of the test files not to fail the build.

      BUILD SUCCESSFUL
      Total time: 16 minutes 34 seconds
      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing PHPUnit-3.x (default)
      [xUnit] [INFO] - [PHPUnit-3.x (default)] - No test report file(s) were found with the pattern 'build\*\report\*.xml' relative to 'C:\jenkins-node-workspace\workspace\Reports-Package' for the testing framework 'PHPUnit-3.x (default)'.  Did you enter a pattern relative to the correct directory?  Did you generate the result report(s) for 'PHPUnit-3.x (default)'?
      [xUnit] [WARNING] - No test reports found for the metric 'PHPUnit' with the resolved pattern 'build\*\report\*.xmlIgnore.
      [xUnit] [INFO] - Setting the build status to FAILURE
      [xUnit] [INFO] - Stopping recording.
      Build step 'Publish xUnit test result report' changed build result to FAILURE
      Archiving artifacts
      Sending e-mails to: xxx
      Finished: FAILURE
      

        Attachments

          Activity

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              iainmackay85 Iain Mackay
            • Votes:
              4 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: