Skip to content

coverage diff in pull requests #1

Open

Description

@sdarwin

To discuss next year.

One aspect of the overall "reskin coverage reports" project is to add "coverage diffs in pull requests".

The script in this repo https://github.com/cppalliance/ci-automation/blob/master/scripts/gcov-compare.py compares two gcovr summary json files such as these example files https://github.com/cppalliance/ci-automation/blob/master/examples/summary.1.json and outputs the coverage diff as a plain text file https://634.url.prtest2.cppalliance.org/gcovr/coverage_diff.txt

To be done: add html and javascript such that the diff is shown as a colorful graphical chart instead of merely numbers.

The new script could be added here in gcov-compare.py, in the output section. Instead of only generating numbers, as currently, it will print the data embedded in a formatted web page with other features.

cc @vinniefalco @gregnewman

Activity

  1. sdarwin commented on Jan 14, 2025

    @sdarwin
    CollaboratorAuthor

    The script gcov-compare.py creates "coverage diffs".
    The appearance of that may be improved.
    See earlier comments.
    cc. @rbbeeston @gregkaleka

  2. sdarwin commented on Jan 14, 2025

    @sdarwin
    CollaboratorAuthor

    Codecov used to display a "colorful graphical chart", inspired by the amount of code coverage difference, so that was the feature..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions