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.
https://reportgenerator.io
Apache License 2.0
2.65k stars 283 forks source link

Suggestion for new report type: MarkdownTableShortSummary #667

Closed alexandrehtrb closed 6 months ago

alexandrehtrb commented 6 months ago

Hello,

First, thanks for this tool.

I would like to propose a new report type, that makes a short Markdown table with just the global and analysed assemblies' coverages. It would be good for commenting in a pull request.

Level above or equal 80% makes green label, else, red. Something like this:


Unit tests code coverage Line coverage Branch coverage

Assembly Line coverage Branch coverage
MySolution.Domain 94.4% 82.4%
MySolution.Application 74.7% 81.3%

### Unit tests code coverage ![Line coverage](https://img.shields.io/badge/lines-92.7%25-080) ![Branch coverage](https://img.shields.io/badge/branches-72.2%25-800)

| Assembly | Line coverage | Branch coverage |
|---|---|---|
| **MySolution.Domain** | 94.4% | 82.4% |
| **MySolution.Application** | 74.7% | 81.3% |
danielpalme commented 6 months ago

Will consider this in the next release!

danielpalme commented 6 months ago

Release 5.3.0 now contains a new report type 'MarkdownAssembliesSummary'