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

py.test generated test reports are no longer being parsed as valid

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Junit xml files produced by py.test (http://pytest.org) are no longer being parsed.

      Console output shows

      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing JUnit
      [xUnit] [INFO] - [JUnit] - 2 test report file(s) were found with the pattern 'test_artifacts/**/*.xml' relative to '/home/jenkins/tests/workspace/VCHIq_USB_Driver_Test' for the testing framework 'JUnit'.
      [xUnit] [ERROR] - The result file '/home/jenkins/tests/workspace/VCHIq_USB_Driver_Test/test_artifacts/sanity_vchiq.xml' for the metric 'JUnit' is not valid. The result file has been skipped.
      [xUnit] [INFO] - Fail BUILD because 'set build failed if errors' option is activated.
      [xUnit] [INFO] - There are errors when processing test results.
      [xUnit] [INFO] - Skipping tests recording.
      [xUnit] [INFO] - Stop build.
      

      and the xml file looks as follows

      <testsuite name="" errors="0" failures="0" skips="0" tests="1" time="33.353"><testcase classname="jenkins.sanity_vchiq" name="test_loadkernel" time="31.3439750671"/></testsuite>
      

      I believe it the skips attribute that is no longer being considered valid.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/xunit/types/JUnitInputMetric.java
          src/main/java/org/jenkinsci/plugins/xunit/types/model/JUnit9.java
          src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-9.xsd
          http://jenkins-ci.org/commit/xunit-plugin/25cb3575c602bd342667dc3cdd250018d286d102
          Log:
          Fix JENKINS-18263

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/xunit/types/JUnitInputMetric.java src/main/java/org/jenkinsci/plugins/xunit/types/model/JUnit9.java src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-9.xsd http://jenkins-ci.org/commit/xunit-plugin/25cb3575c602bd342667dc3cdd250018d286d102 Log: Fix JENKINS-18263

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              drewr Drew Reed
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: