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

Unit tests 's XML report not valid for xunit


    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: xunit-plugin
    • Labels:
    • Environment:
      Jenkins 1.617
      Xunit : 1.60 (same with the last one 1.96)
      CPPtest 7.3
    • Similar Issues:


      Hi everyone,

      I have some troubles when parsing a XML report. This report was generated by cpptestcli -report unitTests.xml.
      I can import it manually in Visual studio 2010. But the last step of the job fails.

      here is what is written on the log :

      [Cpptest] Collecting Cpptest analysis files...
      [Cpptest] Computing warning deltas based on reference build
      #1Archiving artifacts
      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing CppTest-7.x
      [xUnit] [INFO] - [CppTest-7.x] - 2 test report file(s) were found with the pattern '.xml' relative to 'D:\Jenkins\workspace\STS_INTRFACE_TU' for the testing framework 'CppTest-7.x'.
      [xUnit] [ERROR] - The converted file for the result file 'D:\Jenkins\workspace\STS_INTRFACE_TU\unitTests.xml' (during conversion process for the metric 'CppTest') is not valid. The report 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.
      Build step 'Publish xUnit test result report' changed build result to FAILURE
      Finished: FAILURE

      I really dont know why. I have 6 projects, 3 of them fail, the 3 others are OK .
      I join you the report generated.

      Thanks a lot for your help





            • Assignee:
              gbois Gregory Boissinot
              ayer Antoine Manceau
            • Votes:
              1 Vote for this issue
              2 Start watching this issue


              • Created: