Open gitblit opened 4 months ago
@Electroid any insight on which side is counting incorrectly? lcov or the CLI reporter?
In the latest version (1.1.27) which has LCOV fixes in #13633 , the results look a little better. Uncovered lines more closely track the CLI, but there is still major discrepancy on coverage. Is the CLI being too optimistic? Or is the LCOV reporter being pessimistic?
@fmorency I am curious on the example from your recent fix in #13633, does the Bun CLI and the output from genhtml
match?
@gitblit They didn't match exactly. The fix in #13633 only addresses the inaccurate reporting of uncovered lines in the lcov
reporter.
What version of Bun is running?
1.1.16+bf7b327f6
What platform is your computer?
Linux 5.15.133.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
This is a challenge. I don't know enough about the
lcov
format to know if my expectations are incorrect and it's a limitation of the format. Having said that:What is the expected behavior?
The results reported/displayed in the CLI matches the reports rendered by lcov formatters.
What do you see instead?
LH
(lines hit?) undercounts... maybe it's skipping braces and comments and the CLI reporter includes these?Additional information
Focus on
DairyCowRepository.ts
:I'm using
livewing/lcov-job-summary@v1.1.0
to render the following results.