jaschilz/php-coverage-badger
Generate an SVG code coverage badge from a PHPUnit Clover XML report. Install via Composer and run the included CLI to turn clover.xml into a coverage.svg badge for your CI or README.
PHPCoverageBadge is a library for creating an SVG coverage badge from a PHPUnit Clover XML file.
Composer!
composer require --dev jaschilz/php-coverage-badger
vendor/bin/php-coverage-badger /path/to/clover.xml /path/to/badge/destination.svg
vendor/bin/php-coverage-badger build/clover.xml report/coverage.svgThis library is forked from Michael Moussa's php-coverage-checker, derived from Marco Pivetta's post on CI test coverage checks
Inspiration for generating an SVG badge from coverage results is taken from the coverage-badge Python library, derived from the Shields.io project.
How can I help you explore Laravel packages today?