pytest-coverage-commentator icon indicating copy to clipboard operation
pytest-coverage-commentator copied to clipboard

Generate a badge with the coverage %age in it

Open remileduc opened this issue 3 years ago • 1 comments

It would be awesome if you could also generate a badge that we can integrate in the README of our project.

It should be green / yellow / red depending on some thresholds of coverage (80%, 50%?). Maybe these threshold should be customizable?

Here is an example (made with coveralls.io) of the wished result (clickable image): image

remileduc avatar Mar 15 '21 18:03 remileduc

Have the same issue. Found solution on similar GitHub Action: Pytest Coverage Comment It generates the badge with the right color :)

image

MishaKav avatar Jun 02 '21 20:06 MishaKav