You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Salesforce CLI plugin to transform the Apex code coverage JSON files created during deployments and test runs into the following formats:
24
-
- SonarQube (XML)
25
-
- Cobertura (XML)
26
-
- LCovOnly (INFO)
27
-
- Clover (XML)
28
-
29
-
These formats are accepted by SonarQube, GitHub, GitLab, etc.
24
+
A Salesforce CLI plugin to transform the Apex code coverage JSON files created during deployments and test runs into various formats accepted by SonarQube, GitHub, GitLab, etc.
30
25
31
26
If there's a coverage format not yet supported by this plugin, feel free to provide a pull request or issue for the coverage format.
32
27
@@ -98,7 +93,6 @@ FLAGS
98
93
-r, --output-report=<value> Path to the code coverage file that will be created by this plugin.
99
94
[default: "coverage.[xml/info]"]
100
95
-f, --format=<value> Output format for the code coverage format.
101
-
Valid options are "sonar", "clover", "lcovonly", or "cobertura".
102
96
[default: "sonar"]
103
97
104
98
GLOBAL FLAGS
@@ -117,6 +111,17 @@ EXAMPLES
117
111
$ sf acc-transformer transform -j "coverage.json" -r "coverage.info" -f "lcovonly"
118
112
```
119
113
114
+
## Coverage Report Formats
115
+
116
+
The `-f'/`--format` flag allows you to specify the format of the coverage report.
117
+
118
+
| Flag Option | Description |
119
+
|-------------|-------------|
120
+
|`sonar`| Generates a SonarQube-compatible coverage report. This is the default option. |
121
+
|`clover`| Produces a Clover XML report format, commonly used with Atlassian tools. |
122
+
|`lcovonly`| Outputs coverage data in LCOV format, useful for integrating with LCOV-based tools. |
123
+
|`cobertura`| Creates a Cobertura XML report, a widely used format for coverage reporting. |
124
+
120
125
## Hook
121
126
122
127
A post-run hook has been configured if you opt into using it by creating a `.apexcodecovtransformer.config.json` config file in the root of your repo. If the config file is found, the post-run hook will automatically run after the following commands:
0 commit comments