Merge-JaCoCoReport
: Calculates hit count correctly?
#392
Labels
discussion
The issue is a discussion.
Merge-JaCoCoReport
: Calculates hit count correctly?
#392
Problem description
Currently the hit count is overwritten when the merge document's
<line>
has a hit count higher than the original document's<line>
:Sampler/Sampler/Public/Merge-JaCoCoReport.ps1
Lines 89 to 96 in 02cc8da
But shouldn't the hit count of the merge document be added to the count of the original document?
Example:
And shouldn't it always add to the hit count, not just when original line is less than the merge line?
Example:
This is also true for missed hit count that can be more than 1.
Example from the project SqlServerDsc and the DSC resource SqlAg (DSC_SqlAg.psm1):
Verbose logs
How to reproduce
I possible to create a unit tests that shows that hit count is overwritten.
Expected behavior
Uncertain how hit count should be calculated so I opened this issue for future improvement.
Current behavior
Current behavior could be correct, but feels wrong.
Suggested solution
Uncertain how hit count should be calculated so I opened this issue for future improvement.
Operating system the target node is running
PowerShell version and build the target node is running
Module version used
The text was updated successfully, but these errors were encountered: