Skip to content

Commit 9e8f102

Browse files
committed
fix: add covered and uncovered lines to XML
1 parent df4c760 commit 9e8f102

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/helpers/convertToGenericCoverageReport.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ export function convertToGenericCoverageReport(data: CoverageData, dxDirectory:
1616
if (Object.hasOwn(classInfo.s, lineNumber)) {
1717
const count = classInfo.s[lineNumber];
1818
const covered = count > 0 ? 'true' : 'false';
19-
// only add uncovered lines
20-
if (covered === 'false') {
21-
xml += `\t\t<lineToCover lineNumber="${lineNumber}" covered="${covered}"/>\n`;
22-
}
19+
xml += `\t\t<lineToCover lineNumber="${lineNumber}" covered="${covered}"/>\n`;
2320
}
2421
}
2522
xml += '\t</file>\n';

0 commit comments

Comments
 (0)