Skip to content

Commit

Permalink
Fix for code coverage file
Browse files Browse the repository at this point in the history
This is in regards to issue forcedotcom/cli#1725. 

The fix is to simply update no-map by project root directory to force apex-node to find all cls and trigger in working directory. While the fix will work for now, I believe it is still incomplete as it doesn't consider packageDirectories filtering from sfdx-project.json.
  • Loading branch information
davidbrowaeys authored Nov 22, 2022
1 parent 614c196 commit dee4493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deployCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export abstract class DeployCommand extends SourceCommand {
// only generate reports if test results are present
if (this.deployResult.response?.numberTestsTotal) {
if (this.flags.coverageformatters) {
createCoverageReport(this.deployResult, this.flags.coverageformatters as string[], 'no-map', this.resultsDir);
createCoverageReport(this.deployResult, this.flags.coverageformatters as string[], '.', this.resultsDir);
}
if (this.flags.junit) {
this.createJunitResults(this.deployResult);
Expand Down

0 comments on commit dee4493

Please sign in to comment.