codebtech / coveragebadge
Creates code coverage badge from Clover XML files.
Installs: 8 375
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 1
Open Issues: 4
Requires (Dev)
- ergebnis/composer-normalize: ^2.42
- phpmd/phpmd: ^2.15
- phpstan/phpstan: ^1.11
- phpstan/phpstan-deprecation-rules: ^1.2
- phpstan/phpstan-strict-rules: ^1.6
- phpunit/phpunit: ^11.1
- slevomat/coding-standard: ^8.15
- squizlabs/php_codesniffer: ^3.10
- dev-main
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.1
- v0.2.0
- v0.1.0
- dev-dependabot/composer/squizlabs/php_codesniffer-3.11.3
- dev-dependabot/composer/phpunit/phpunit-11.5.3
- dev-dependabot/composer/squizlabs/php_codesniffer-3.11.2
- dev-dependabot/composer/ergebnis/composer-normalize-2.45.0
- dev-dependabot/docker/php-8.4-cli
This package is auto-updated.
Last update: 2025-01-27 14:32:20 UTC
README
CoverageBadge is a PHP library for creating SVG coverage badges from Clover XML files.
Installation
composer require codebtech/coveragebadge --dev
Features
- Produces a code coverage badge utilizing a Clover coverage XML file
- Creates a code coverage badge from several Clover XML files, automatically incorporating the coverage percentages
- Accepts a coverage name as an input to include in the generated badge
Usage
- Execute the command to generate badge for single Clover XML input
vendor/bin/coverage-badge /path/to/clover.xml /path/to/badge/destination.svg test-name
- To blend multiple Clover files, enumerate the XML inputs separated by commas and use the command
vendor/bin/coverage-badge /path/to/clover.xml,/path/to/clover2.xml /path/to/badge/destination.svg test-name
Acknowledgements
This library is inspired by JASchilz/PHPCoverageBadge