ReportGenerator 2.1 has just been published as a beta release. This blog post will explain the new feature trend/history charts and some other improvements.
When you use the new command line parameter -historydir:SOME_DIRECTORY each execution of ReportGenerator will generate a XML file containing coverage information. On subsequent executions those files are used to render some trend charts.
Charts are generated in each class report and in the summary report. They show evolution of line and branch overage over time:
The directory used for -historydir should be a persistent directory that is not cleaned between builds, otherwise history will get lost.
Branch coverage is only available if you use OpenCover (version 4.5.3207 and above).
Branch information in class report
The class report now shows a visual indicator for branch coverage. A red/green bar indicates the coverage of a branch.
Feedback is highly appreciated. Let me know if you like the new charts?
The latest beta release can be found on Nuget. The final release will be available on GitHub as well.
It is awesome to have a generic code coverage parser! Why not expose it (making those classes public as opposed to internal)? In that way some one could pull a nuget and use only a parser. I understand that the output could be generated in xml, but yet I would much rather get coverage through API.
Version 2.1.2 is the latest stable release.
You can use this without worries.
If the coverage data between two events did not change, then only the first event is shown. As soon as you make real changes to the code base, then you will see more events in the chart. One of the following properties has to change:
I decided to only show "real" events in the charts, because after a lot of builds, it more useful to see the actual changes over time instead of some straight lines.
The HTML contains a static table containing all assemblies and classes. This should be rendered quite fast (depending on your browser and your hardware)
This dynamic table is only used if the report contains less than 1500 classes. If you have more classes then you have to activate the dynamic filtering by clicking on a button labeled "Enable filtering".
So in any case the performance should be OK. Please make sure to use the latest release for best performance!
Let me know if something is unexpectedly slow.
You could also try the plain text report. Just pass "-reporttypes:TextSummary" for that
The history coverage trend will be helpful for user to trace the coverage
change, I like it.
And I have 2 questions:
1: about the new version 184.108.40.206, because it it beta release, and I am using 220.127.116.11, is it ok if I continuously use the 18.104.22.168 version instead of 22.214.171.124?
2: For the history chart, if for one class, the coverage is always the same, based on my experiment I found there is no history chart for that class, is it some operation error from my side?
3: Because there are huge number of dlls and classes in my report, so the browser performance is too bad, could you please give me some suggestion to improve it? I am not sure the 126.96.36.199 "Collapse all" feature can solve it or not, for my understanding, it still can't, because the html source code is almost the same, Am I right?
Thank you for your help and waiting for your answer!