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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xunit-plugin
    • None

      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.

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

              Created:
              Updated:
              Resolved: