danielpalme / ReportGenerator

ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats.

Home Page:https://reportgenerator.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possibility to support diff coverage - Html report

tvbishan opened this issue · comments

Would it be feasible to count coverage for modifications made to the code (including those made or added) instead of the overall code?

Currently, I'm generating Html report and it shows the coverage gets measured for the entire codebase of the project. But, in the context of pull requests, I need to see if the specific lines of code that were added or changed are covered (diff coverage).

I am aware that TextDeltaSummary exists. But is there a way to see the Diff Coverage in the HTML report instead of the Full Coverage?

There is already an option in the summary page, that let's you filter classes where coverage has changed compared to a previous execution.
This feature requires that you are creating history files (you have to use the -historydir: parameter for that).

See sample report:
https://reportgenerator.io/resources/reports/Html/index.html

image

I don't plan to create a report which shows the exact changes line by line between two executions.

Thank you.

But this only changes the section below that dropdown. Top section (Summary) of the the report is not changing. Is there a way to change that section with selection of Compare with dropdown?
image

That's not supported at the moment.