diff --git a/dist/action.js b/dist/action.js
index 3ac6c04..ba9c7c8 100644
--- a/dist/action.js
+++ b/dist/action.js
@@ -20008,15 +20008,17 @@ function generateCoverageDiff(before, after) {
report.lines,
previousRunResult ? getCoverage(previousRunResult.lines) : 0
);
+ const missedLines = report.lines.details.filter((line) => line.hit === 0).map((line) => `[${line.line}](${report.file}#L${line.line})`).join(",");
const functionCoverage = formatCoverageLine(
report.functions,
previousRunResult ? getCoverage(previousRunResult.functions) : 0
);
+ const missedFunctions = report.functions.details.filter((line) => line.hit === 0).map((line) => `[${line.name}](${report.file}#L${line.line})`).join(",");
const branchCoverage = formatCoverageLine(
report.branches,
previousRunResult ? getCoverage(previousRunResult.branches) : 0
);
- content += `| ${report.file} | ${lineCoverage} | ${functionCoverage} | ${branchCoverage} |
+ content += `| ${report.file} | ${lineCoverage}
${missedLines} | ${functionCoverage}
${missedFunctions} | ${branchCoverage} |
`;
}
return content;
diff --git a/dist/action.mjs b/dist/action.mjs
index 4487030..f40aee4 100644
--- a/dist/action.mjs
+++ b/dist/action.mjs
@@ -20013,15 +20013,17 @@ function generateCoverageDiff(before, after) {
report.lines,
previousRunResult ? getCoverage(previousRunResult.lines) : 0
);
+ const missedLines = report.lines.details.filter((line) => line.hit === 0).map((line) => `[${line.line}](${report.file}#L${line.line})`).join(",");
const functionCoverage = formatCoverageLine(
report.functions,
previousRunResult ? getCoverage(previousRunResult.functions) : 0
);
+ const missedFunctions = report.functions.details.filter((line) => line.hit === 0).map((line) => `[${line.name}](${report.file}#L${line.line})`).join(",");
const branchCoverage = formatCoverageLine(
report.branches,
previousRunResult ? getCoverage(previousRunResult.branches) : 0
);
- content += `| ${report.file} | ${lineCoverage} | ${functionCoverage} | ${branchCoverage} |
+ content += `| ${report.file} | ${lineCoverage}
${missedLines} | ${functionCoverage}
${missedFunctions} | ${branchCoverage} |
`;
}
return content;
diff --git a/dist/lib.js b/dist/lib.js
index 833ecff..8c844d1 100644
--- a/dist/lib.js
+++ b/dist/lib.js
@@ -59,15 +59,17 @@ function generateCoverageDiff(before, after) {
report.lines,
previousRunResult ? getCoverage(previousRunResult.lines) : 0
);
+ const missedLines = report.lines.details.filter((line) => line.hit === 0).map((line) => `[${line.line}](${report.file}#L${line.line})`).join(",");
const functionCoverage = formatCoverageLine(
report.functions,
previousRunResult ? getCoverage(previousRunResult.functions) : 0
);
+ const missedFunctions = report.functions.details.filter((line) => line.hit === 0).map((line) => `[${line.name}](${report.file}#L${line.line})`).join(",");
const branchCoverage = formatCoverageLine(
report.branches,
previousRunResult ? getCoverage(previousRunResult.branches) : 0
);
- content += `| ${report.file} | ${lineCoverage} | ${functionCoverage} | ${branchCoverage} |
+ content += `| ${report.file} | ${lineCoverage}
${missedLines} | ${functionCoverage}
${missedFunctions} | ${branchCoverage} |
`;
}
return content;
diff --git a/dist/lib.mjs b/dist/lib.mjs
index cdd993f..bb95421 100644
--- a/dist/lib.mjs
+++ b/dist/lib.mjs
@@ -35,15 +35,17 @@ function generateCoverageDiff(before, after) {
report.lines,
previousRunResult ? getCoverage(previousRunResult.lines) : 0
);
+ const missedLines = report.lines.details.filter((line) => line.hit === 0).map((line) => `[${line.line}](${report.file}#L${line.line})`).join(",");
const functionCoverage = formatCoverageLine(
report.functions,
previousRunResult ? getCoverage(previousRunResult.functions) : 0
);
+ const missedFunctions = report.functions.details.filter((line) => line.hit === 0).map((line) => `[${line.name}](${report.file}#L${line.line})`).join(",");
const branchCoverage = formatCoverageLine(
report.branches,
previousRunResult ? getCoverage(previousRunResult.branches) : 0
);
- content += `| ${report.file} | ${lineCoverage} | ${functionCoverage} | ${branchCoverage} |
+ content += `| ${report.file} | ${lineCoverage}
${missedLines} | ${functionCoverage}
${missedFunctions} | ${branchCoverage} |
`;
}
return content;
diff --git a/src/lib.ts b/src/lib.ts
index aa16c14..97a1b10 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -63,16 +63,24 @@ export function generateCoverageDiff(before: Lcov, after: Lcov) {
report.lines,
previousRunResult ? getCoverage(previousRunResult.lines) : 0,
);
+ const missedLines = report.lines.details
+ .filter((line) => line.hit === 0)
+ .map((line) => `[${line.line}](${report.file}#L${line.line})`)
+ .join(",");
const functionCoverage = formatCoverageLine(
report.functions,
previousRunResult ? getCoverage(previousRunResult.functions) : 0,
);
+ const missedFunctions = report.functions.details
+ .filter((line) => line.hit === 0)
+ .map((line) => `[${line.name}](${report.file}#L${line.line})`)
+ .join(",");
const branchCoverage = formatCoverageLine(
report.branches,
previousRunResult ? getCoverage(previousRunResult.branches) : 0,
);
- content += `| ${report.file} | ${lineCoverage} | ${functionCoverage} | ${branchCoverage} |\n`;
+ content += `| ${report.file} | ${lineCoverage}
${missedLines} | ${functionCoverage}
${missedFunctions} | ${branchCoverage} |\n`;
}
return content;
}