|
|
@@ -20,9 +20,8 @@ Symbol|Meaning |
|
|
|
## Test Coverage |
|
|
|
Unless otherwise specified, these properties require values that are relative to project root. |
|
|
|
|
|
|
|
Langauge|Property|Remarks |
|
|
|
Language|Property|Remarks |
|
|
|
----|----|---- |
|
|
|
**Any**|`sonar.coverage.jacoco.xmlReportPaths`|Path to JaCoCo XML coverage reports. |
|
|
|
**Any**|`sonar.coverageReportPaths`|Path to coverage report in the [Generic Test Data](/analysis/generic-test/) format. |
|
|
|
Apex|`sonar.apex.coverage.reportPath`|Path to the `test-result-codecoverage.json` report file generated by the [`apex:test:run`](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_apex.htm?search_text=apex%20test#cli_reference_test_run) command of the [Salesforce CLI](https://developer.salesforce.com/tools/sfdxcli). Note, you must have a [Salesforce DX project](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_workspace_setup.htm) set up and linked to your Org |
|
|
|
C / C++ / Objective-C|`sonar.cfamily.gcov.reportsPath`|Path to the directory containing native `*.gcov` reports (not the XML reports generated by gcovr) |
|
|
@@ -34,7 +33,8 @@ C#|`sonar.cs.dotcover.reportsPaths`|Path to dotCover coverage report. See _Notes |
|
|
|
C#|`sonar.cs.opencover.reportsPaths`|Path to OpenCover coverage report. See _Notes on importing .NET reports_ below. |
|
|
|
Flex|`soanr.flex.cobertura.reportPath`|Path to the Cobertura XML report. May be absolute or relative to the project base directory. |
|
|
|
Go|`sonar.go.coverage.reportPaths`|Comma-delimited list of paths to coverage report files. Path wildcards are supported (see above) since SonarGo 1.1. |
|
|
|
Java|`sonar.jacoco.reportPaths`|Path to JaCoCo reports in binary format. **Supported only for Java**. |
|
|
|
Java / Kotlin / Scala / JVM|`sonar.coverage.jacoco.xmlReportPaths`|Path to JaCoCo XML coverage reports. |
|
|
|
Java|`sonar.jacoco.reportPaths`![](/images/cross.svg)|**Deprecated. Use `sonar.coverage.jacoco.xmlReportsPath`.** Path to JaCoCo reports in binary format. **Supported only for Java**. |
|
|
|
JavaScript|`sonar.javascript.lcov.reportPaths`|Comma-delimited list of paths to LCOV coverage report files. Paths may be absolute or relative to project root. |
|
|
|
PHP|`sonar.php.coverage.reportPaths`|Comma-delimited list of paths to Clover XML-format coverage report files. Paths may be absolute or relative to project root. |
|
|
|
Python|`sonar.python.coverage.reportPaths`|Comma-delimited list of paths to coverage reports in the Cobertura XML format. Path wildcards are supported (see above). Leave unset to use the default (`coverage-reports/*coverage-*.xml`). |