Uploaded image for project: 'SonarPython'
  1. SonarPython
  2. SONARPY-415

The import of an invalid XUnit report should give clear error messages

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: Plugin
    • Labels:
      None

      Description

      The following XUnit report misses some attributes:

      <?xml version="1.0" encoding="UTF-8"?>
      <testsuite name="nosetests" tests="1" errors="0" failures="0" skip="0">
        <testcase name="test_successfull" />
      </testsuite>
      

      When feeding that report to the analysis, we get the following logs:

      INFO: Sensor PythonXUnitSensor [python]
      WARN: Cannot read report 'junit.xml', the following exception occurred: null
      

      The message should state clearly which attribute is missing and the line of the element missing the attribute.

        Attachments

          Activity

            People

            • Assignee:
              nicolas.peru Nicolas Peru
              Reporter:
              pierre-yves.nicolas Pierre-Yves Nicolas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: