Skip to content

Commit 5e9fb99

Browse files
authored
Add branch coverage for comment detail (#19)
1 parent c9044ab commit 5e9fb99

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async function mergeCoverages(coverageFiles, tmpPath) {
9191
args.push('--output-file');
9292
args.push(mergedCoverageFile);
9393

94-
await exec.exec('lcov', args);
94+
await exec.exec('lcov', [...args, '--rc', 'lcov_branch_coverage=1']);
9595

9696
return mergedCoverageFile;
9797
}
@@ -112,6 +112,8 @@ async function summarize(coverageFile) {
112112
await exec.exec('lcov', [
113113
'--summary',
114114
coverageFile,
115+
'--rc',
116+
'lcov_branch_coverage=1'
115117
], options);
116118

117119
const lines = output
@@ -140,6 +142,8 @@ async function detail(coverageFile, octokit) {
140142
'--list',
141143
coverageFile,
142144
'--list-full-path',
145+
'--rc',
146+
'lcov_branch_coverage=1',
143147
], options);
144148

145149
let lines = output

0 commit comments

Comments
 (0)