coverage table to the console

This commit is contained in:
sezanzeb 2020-11-27 00:42:44 +01:00
parent e315b74de4
commit f5369cfc75
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ coverage_badge() {
# https://github.com/dbrgn/coverage-badge # https://github.com/dbrgn/coverage-badge
coverage run --branch --source=/usr/lib/python3.8/site-packages/keymapper tests/test.py coverage run --branch --source=/usr/lib/python3.8/site-packages/keymapper tests/test.py
python3 -m coverage_badge > readme/coverage.svg python3 -m coverage_badge > readme/coverage.svg
coverage report -m
echo "coverage badge created" echo "coverage badge created"
} }

View File

@ -15,7 +15,7 @@
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"> <g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="31.5" y="15" fill="#010101" fill-opacity=".3">coverage</text> <text x="31.5" y="15" fill="#010101" fill-opacity=".3">coverage</text>
<text x="31.5" y="14">coverage</text> <text x="31.5" y="14">coverage</text>
<text x="80" y="15" fill="#010101" fill-opacity=".3">85%</text> <text x="80" y="15" fill="#010101" fill-opacity=".3">84%</text>
<text x="80" y="14">85%</text> <text x="80" y="14">84%</text>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 904 B

After

Width:  |  Height:  |  Size: 904 B