Files coverage computation error
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- testing-qa
Research direction
Start in resources/js/vue/components/BuildCoveragePage.vue around lines 344-350, where the file coverage computation is identified. Compare the result for empty files and non-empty files with zero coverage against the stated expectations, then verify that the displayed overall file coverage reflects those cases correctly.
Written by the indexing model from the issue text.
Description
Bug report
Looking at the my file coverage percentage and comparing it to the actual individual file coverage I believe the result does not reflect the reality. At least not my interpretation of "a file is covered".
- Empty files should be considered covered: 0 / 0 correctly gives 100% file coverage but seem to count as an uncovered file
- Non-empty zero-coverage files should be considered uncovered: 0 / N correctly gives a 0% file coverage but seems to count as a covered file
Relevant logic seems to be here:
https://github.com/Kitware/CDash/blob/94d115a8aa03fa130692a6708a5a932fc88052ce/resources/js/vue/components/BuildCoveragePage.vue#L344-L350
CDash Version
v5.0.0
- Dominant language
- PHP
- Stars
- 248
- Forks
- 83
- Avg merge
- 12h 9m
- Merged PRs (30d)
- 47
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Kitware/CDash
-
bug report
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
bug report
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
bug report
Difficulty 3/5 1-2 days Newbie friendliness 62/100
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 35/100
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·