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

Improve clarity of line and branch coverage format. #125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jan 8, 2024

  1. Improve clarity of line and branch coverage format.

    - Put percentage first and then covered and total counts in brackets afterwards. Percentage is most critical at a quick glance.
    
    - Put line and brnach coverage on separate lines.
    
    Now it shows in a clean format, including covered branches, total branches and percent of covered branches. Something like this:
    
    ```
    Coverage report generated for (1/10), (10/10), (2/10), (3/10), (4/10), (5/10), (6/10), (7/10), (8/10), (9/10) to /Users/me/Development/cntral/coverage.
    Line Coverage: 58.44% (7554 / 12927)
    Branch Coverage: 50.43% (1868 / 3704)
    ```
    
    When branch coverage is not enabled it simply omits that line, so it appears like this:
    
    ```
    Coverage report generated for (1/10), (10/10), (2/10), (3/10), (4/10), (5/10), (6/10), (7/10), (8/10), (9/10) to /Users/me/Development/cntral/coverage.
    Line Coverage: 58.44% (7554 / 12927)
    ```
    joshuapinter committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    e2b0025 View commit details
    Browse the repository at this point in the history