Repository navigation
Add ability to support branch coverage statistics ruby >= 2.5 - #64
Conversation
896c592 to
f408106
Compare
| background-color: #FBF0C0 | ||
| &:nth-child(even) | ||
| background-color: #FBFfCf No newline at end of file | ||
| background-color: #FBFfCf |
There was a problem hiding this comment.
How about using lowercase values for all colors in this file for consistency?
| # Check if branchable results supported or not | ||
| # Try used here to escape exceptions | ||
| def branchable_result? | ||
| defined?(SimpleCov::branchable_report) ? SimpleCov::branchable_report : false |
There was a problem hiding this comment.
It's not clear to me what SimpleCov::branchable_report refers to? Should it be SimpleCov.branchable_report?
|
|
||
| def line_status?(source_file, line) | ||
| if branchable_result? && source_file.line_with_missed_branch?(line.number) | ||
| "missed-branch" |
There was a problem hiding this comment.
Not sure it matters, but this could be made into a constant / frozen string.
|
|
||
| <% if branchable_result? %> | ||
| <h4> | ||
| <span class="<%= coverage_css_class(source_file.branches_coverage_precent) %>"> |
|
Ugh all the CI failing is my/our fault... need to fix that up. Sorry. |
a6e72e6 to
331679d
Compare
|
@PragTob I updated the branch, hope it will fix CI, else I will try to have a look this evening! |
331679d to
cf09ef2
Compare
|
|
Ah wanted to fix that up on a separate branch, small changes, fix it for everyone and not tie it to this branch and such... but thank you still, I'll do further fixing after this landed which will hopefully be soon :D |
|
🎉 |
Show statistics of branch coverage result.


You can put this merge on pending until they merge
simplecovgem branch that generates needed statistics. Anyway, these modifications are not harmful.