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

xunit reporting 0 test when I see junit file exists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • xunit-plugin
    • None
    • centos 5.5

      My console output has this.

      Total time: 4 seconds
      [CHECKSTYLE] Collecting checkstyle analysis files...
      [PMD] Collecting PMD analysis files...
      [DRY] Collecting duplicate code analysis files...
      Recording plot data
      Publishing Clover coverage report...
      Publishing Clover HTML report...
      Publishing Clover XML report...
      Publishing Clover coverage results...
      [htmlpublisher] Archiving HTML reports...
      [htmlpublisher] Archiving at BUILD level /var/lib/jenkins/jobs/FCE/build/api to /var/lib/jenkins/jobs/FCE/builds/2012-04-25_21-50-46/htmlreports/API_Documentation
      [htmlpublisher] Archiving at BUILD level /var/lib/jenkins/jobs/FCE/build/code-browser to /var/lib/jenkins/jobs/FCE/builds/2012-04-25_21-50-46/htmlreports/Code_Browser
      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing PHPUnit-3.4 (default)
      [xUnit] [INFO] - [PHPUnit-3.4 (default)] - No test report file(s) were found with the pattern '../build/logs/junit.xml' relative to '/var/lib/jenkins/jobs/FCE/workspace' for the testing framework 'PHPUnit-3.4 (default)'. Did you enter a pattern relative to the correct directory? Did you generate the result report(s) for 'PHPUnit-3.4 (default)'?
      [xUnit] [ERROR] - No test reports found for the metric 'PHPUnit' with the resolved pattern '../build/logs/junit.xml'. Configuration error?.
      [xUnit] [INFO] - Setting the build status to FAILURE
      [xUnit] [INFO] - Stopping recording.
      Build step 'Publish testing tools result report' changed build result to FAILURE
      [JDepend] JDepend plugin is ready
      [JDepend] Found 8 classes in 1 packages
      Finished: FAILURE

      But I have a test file under ../build/logs/junit.xml that looks like this.

      <?xml version="1.0" encoding="UTF-8"?>
      <testsuites>
      <testsuite name="FCE" tests="0" assertions="0" failures="0" errors="0" time="0.000000">
      <testsuite name="IndexControllerTest" file="/var/lib/jenkins/jobs/FCE/src/tests/application/controllers/IndexControllerTest.php" tests="0" assertions="0" failures="0" errors="0" time="0.000000"/>
      </testsuite>
      </testsuites>

      Any idea why this is failing?

            gbois Gregory Boissinot
            mrno42 dou ngo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: