cppalliance / ci-automation

0 stars 1 forks source link

coverage diff in pull requests #1

Open sdarwin opened 1 year ago

sdarwin commented 1 year ago

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.prtest.cppalliance.org/gcovr/coverage_diff.txt

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

The new javascript 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 an html page. The html page will include javascript to convert numbers into a colorful chart.

cc @vinniefalco @gregnewman