|
33 | 33 |
|
34 | 34 | ## Who is the Plugin For?
|
35 | 35 |
|
36 |
| -This plugin is intended for users who deploy their Apex classes and triggers from any Salesforce DX project (`sfdx-project.json` file). You should be running this plugin somewhere inside your Salesforce DX project. This plugin searches for your repository's `sfdx-project.json` file to know which package directories to search into. |
| 36 | +This plugin is intended for users who deploy their Apex classes and triggers from any Salesforce DX project (`sfdx-project.json` file). You should be running this plugin somewhere inside your Salesforce DX project. This plugin searches for your project's `sfdx-project.json` file to know which package directories to search into. |
37 | 37 |
|
38 | 38 | This plugin will work regardless of your testing strategy (running all tests, running specified tests, running all local tests). The files in the original coverage JSON has to be found in one of the package directories to be added to the final report. This ensures external tools like SonarQube can match files in the coverage report to a file in the project.
|
39 | 39 |
|
@@ -100,7 +100,7 @@ GLOBAL FLAGS
|
100 | 100 | --json Format output as json.
|
101 | 101 |
|
102 | 102 | DESCRIPTION
|
103 |
| - Transform the Apex code coverage JSON file created by the Salesforce CLI deploy and test command into SonarQube, Clover, LCovOnly, or Cobertura format. |
| 103 | + Transform the Apex code coverage JSON file created by the Salesforce CLI deploy and test command into other formats accepted by SonarQube, GitHub, GitLab, Azure, Bitbucket, etc. |
104 | 104 |
|
105 | 105 | EXAMPLES
|
106 | 106 | $ sf acc-transformer transform -j "coverage.json" -r "coverage.xml" -f "sonar"
|
@@ -145,7 +145,7 @@ The `.apexcodecovtransformer.config.json` follows this structure:
|
145 | 145 | - `deployCoverageJsonPath` is required to use the hook after deploy commands and should be the path to the code coverage JSON created by the Salesforce CLI/SFDX Hardis deploy command. Recommend using a relative path.
|
146 | 146 | - `testCoverageJsonPath` is required to use the hook after test commands and should be the path to the code coverage JSON created by the Salesforce CLI/SFDX Hardis test command. Recommend using a relative path.
|
147 | 147 | - `outputReportPath` is optional and should be the path to the code coverage file created by this plugin. Recommend using a relative path. If this isn't provided, it will default to `coverage.[xml/info]` in the working directory.
|
148 |
| -- `format` is optional and should be the intended output format for the code coverage file created by this plugin. Options are "sonar", "clover", "lcovonly", or "cobertura". If this isn't provided, it will default to "sonar". |
| 148 | +- `format` is optional and should be the intended coverage report format created by this plugin. If this isn't provided, it will default to "sonar". |
149 | 149 |
|
150 | 150 | If the `.apexcodecovtransformer.config.json` file isn't found, the hook will be skipped.
|
151 | 151 |
|
|
0 commit comments