Closed danctorres closed 8 months ago
Thanks @danctorres, much appreciated! I'll take a look at it soon.
Can you update the PR description to show the before/after to better understand what you observed that looked wrong?
Thanks @danctorres, much appreciated! I'll take a look at it soon.
Can you update the PR description to show the before/after to better understand what you observed that looked wrong?
@aconrad updated the description, hope it helps
Expected Behavior: The report should display the total values (stmts, miss, and cover), calculated for all files excluding those specified by the ignore_regex.
Actual Behavior: Previously, when using ignore_regex to exclude files, the report's total values were incorrect. The values remained the same whether the ignore_regex argument was passed or not.
Steps to Reproduce:
~/pycobertura > pycobertura show --ignore-regex ".*Main|.*ISorted" --format markdown tests/cobertura.xml
Report Before Fix:
Changes:
Result: After the fix, the total values are now calculated correctly, reflected by the following report, generated with the same command.
Report After Fix: