Skip to content

Commit

Permalink
fix: add covered and uncovered lines to XML
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarvin8 committed Mar 4, 2024
1 parent df4c760 commit 9e8f102
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/helpers/convertToGenericCoverageReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ export function convertToGenericCoverageReport(data: CoverageData, dxDirectory:
if (Object.hasOwn(classInfo.s, lineNumber)) {
const count = classInfo.s[lineNumber];
const covered = count > 0 ? 'true' : 'false';
// only add uncovered lines
if (covered === 'false') {
xml += `\t\t<lineToCover lineNumber="${lineNumber}" covered="${covered}"/>\n`;
}
xml += `\t\t<lineToCover lineNumber="${lineNumber}" covered="${covered}"/>\n`;
}
}
xml += '\t</file>\n';
Expand Down

0 comments on commit 9e8f102

Please sign in to comment.