Failing to parse nunit 2 results file

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Minor
    • Component/s: xunit-plugin
    • None
    • Environment:
      xunit 2.0.2
      jenkins

      Upgraded to 2.0.2, still getting following error. Nunit 2 results file has few <test-suite> root attributes under root <test-results> and it fails on second root <test-suite> entry. Unfortunately i cannot paste a full nunit result report.

      INFO: Starting to record.
      INFO: Processing NUnit-2.x (default)
      INFO: [NUnit-2.x (default)] - 1 test report file(s) were found with the pattern 'tests/unit/TestResult.xml' relative to '/home/build/workspace/<redacted_path>' for the testing framework 'NUnit-2.x (default)'.
      WARNING: The file '/home/build/workspace/<redacted_path>/tests/unit/TestResult.xml' is an invalid file.
      WARNING: At line 1478 of file:/home/build/workspace/<redacted_path>/tests/unit/TestResult.xml:cvc-complex-type.2.4.d: Invalid content was found starting with element 'test-suite'. No child element is expected at this point.
      ERROR: The result file '/home/build/workspace/<redacted_path>/tests/unit/TestResult.xml' for the metric 'NUnit' is not valid. The result file has been skipped.
      INFO: Failing BUILD because 'set build failed if errors' option is activated.
      INFO: There are errors when processing test results.
      INFO: Skipping tests recording.
      INFO: Stop build.
      

            Assignee:
            Nikolas Falco
            Reporter:
            Tomas Zaleniakas
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: