Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-8314

Support a standard format to inject test execution reports

    Details

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

      Description

      Make the test execution part of the generic coverage plugin a core feature.

      New property name: sonar.testExecutionReportPaths

      Old property sonar.genericcoverage.unitTestReportPaths is still supported but a warning is logged.

      Supported format is:

      <testExecutions version="1">
        <file path="testx/ClassOneTest.xoo">
          <testCase name="test1" duration="5"/>
          <testCase name="test2" duration="500">
            <skipped message="short message">other</skipped>
          </testCase>
          <testCase name="test3" duration="100">
            <failure message="short">stacktrace</failure>
          </testCase>
          <testCase name="test4" duration="500">
            <error message="short">stacktrace</error>
          </testCase>
        </file>
      </testExecutions>
      

      we also still support format of the generic coverage, but a warning will be logged:

      <unitTest version="1">
        <file path="testx/ClassOneTest.xoo">
          <testCase name="test1" duration="5"/>
          <testCase name="test2" duration="500">
            <skipped message="short message">other</skipped>
          </testCase>
          <testCase name="test3" duration="100">
            <failure message="short">stacktrace</failure>
          </testCase>
          <testCase name="test4" duration="500">
            <error message="short">stacktrace</error>
          </testCase>
        </file>
      </unitTest>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.henry Julien Henry
                Reporter:
                julien.henry Julien Henry
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: