create coverage badge by parsing test coverage reports.
npx test-coverage-badge --help
npx test-coverage-badge --format clover \
./coverage/clover.xml
npx test-coverage-badge --format jacoco-xml \
./build/reports/jacoco/test/jacocoTestReport.xml
png(default):
svg:
npx test-coverage-badge --format clover \
--output-format svg \
./coverage/clover.xml
text:
npx test-coverage-badge --format jacoco-xml \
--output-format text \
./build/reports/jacoco/test/jacocoTestReport.xml
80%
default: ./coverage.png
or ./coverage.svg
custom:
npx test-coverage-badge --format clover \
--output ./coverage/coverage.png \
./coverage/clover.xml