Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Generate badge graphics #25

Closed
ulrichb opened this issue Aug 28, 2015 · 4 comments
Closed

[Feature request] Generate badge graphics #25

ulrichb opened this issue Aug 28, 2015 · 4 comments

Comments

@ulrichb
Copy link

ulrichb commented Aug 28, 2015

It wold be cool if ReportGenerator additionally generates badge graphics for the total statement / branch coverage, like the following example.
sample

Use case: These graphic files could be uploaded somewhere (or directly hosted by the build server) so that they can be referenced e.g. in a GitHub README page.

Ideally these graphics are generated as SVG to have no problems with background colors / scaling.

@danielpalme
Copy link
Owner

Great idea. Will add this soon.

@arpitgold
Copy link

+1 👍
It will be great add to the functionality

@danielpalme
Copy link
Owner

Please have a look at the new released version 2.3.0.0.
By adding Badges to the -ReportTypes you can create some SVG badges

Sample command line arguments:

ReportGenerator.exe "-reports:coverage.xml" "-targetdir:coveragereport" -reporttypes:Html;Badges

Sample badge:
Sample badge

@ulrichb
Copy link
Author

ulrichb commented Sep 2, 2015

Just tested it. Great job! Looks really nice.

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

No branches or pull requests

3 participants