Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use consistent color in first column of HTML Report #927

Merged

Conversation

hemberger
Copy link
Contributor

Fixes #926.

The first column in the HTML Report will now be colored by the "Lines"
coverage level regardless of view (Directory vs. File) or item type
(Directory, File, Class, or Method).

While this is somewhat a matter of preference, I think the following
arguments support this change:

Previous behavior:
image

New behavior:
image

Fixes sebastianbergmann#926.

The first column in the HTML Report will now be colored by the "Lines"
coverage level regardless of view (Directory vs. File) or item type
(Directory, File, Class, or Method).

While this is somewhat a matter of preference, I think the following
arguments support this change:

* Prior to sebastianbergmann#900, the first column was always colored the same as the
  second column. This change restores that pattern since the second
  column is always "Lines" as of sebastianbergmann#900.

* In the File view, the first column for Class and Method items were
  colored by "Class" and "Method" coverage respectively. This meant
  that they were only ever 0/1 or 1/1 (red or green). By switching to
  "Lines" coverage for both, the coloring can be more granular.
@codecov
Copy link

codecov bot commented Aug 19, 2022

Codecov Report

Merging #927 (f0bb62a) into 9.2 (676669d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##                9.2     #927   +/-   ##
=========================================
  Coverage     83.66%   83.66%           
  Complexity     1161     1161           
=========================================
  Files            59       59           
  Lines          3415     3415           
=========================================
  Hits           2857     2857           
  Misses          558      558           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sebastianbergmann sebastianbergmann merged commit cf03af7 into sebastianbergmann:9.2 Aug 20, 2022
@sebastianbergmann
Copy link
Owner

Thank you, @hemberger!

@hemberger hemberger deleted the html-report-color branch August 20, 2022 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants