Skip to content

Commit

Permalink
add summary row for markdown details
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jul 1, 2024
1 parent 43898ee commit 2f0e480
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ const handleMarkdownDetailsReport = async (reportData, reportOptions, options) =
});
}

const markdown = true;

const rows = [];
files.forEach((file) => {

Expand All @@ -480,12 +482,14 @@ const handleMarkdownDetailsReport = async (reportData, reportOptions, options) =
}

const { sourcePath, summary } = file;
const markdown = true;
const fileRow = getRowData(sourcePath, summary, metrics, markdown);
fileRow.uncoveredLines = getUncoveredLines(file, markdown);
rows.push(fileRow);
});

const summaryRow = getRowData('Summary', reportData.summary, metrics, markdown);
rows.push(summaryRow);

const columns = [{
id: 'name',
name: 'Name'
Expand Down

0 comments on commit 2f0e480

Please sign in to comment.