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

Support a standard format to inject coverage 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 coverage part of the generic coverage plugin a core feature.

      New property is sonar.coverageReportPaths

      Old properties sonar.genericcoverage.reportPath, sonar.genericcoverage.reportPaths, sonar.genericcoverage.itReportPaths and sonar.genericcoverage.overallReportPaths are still supported but a warning is logged.

      Supported format is the same as Generic coverage:

      <coverage version="1">
        <file path="xources/hello/NoConditions.xoo">
          <lineToCover lineNumber="6" covered="true"/>
          <lineToCover lineNumber="7" covered="false"/>
        </file>
        <file path="xources/hello/WithConditions.xoo">
          <lineToCover lineNumber="3" covered="true" branchesToCover="2" coveredBranches="1"/>
        </file>
      </coverage>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: