2017 © Pedro Peláez
 

library php-coverage-badger

Create a code coverage badge from a PHPUnit Clover XML file.

image

jaschilz/php-coverage-badger

Create a code coverage badge from a PHPUnit Clover XML file.

  • Friday, July 28, 2017
  • by JASchilz
  • Repository
  • 1 Watchers
  • 2 Stars
  • 5,579 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 50 % Grown

The README.md

PHPCoverageBadge

PHPCoverageBadge is a library for creating an SVG coverage badge from a PHPUnit Clover XML file., (*1)

Installation

Composer!, (*2)

composer require --dev jaschilz/php-coverage-badger, (*3)

Usage

  1. Generate XML Code Coverage using PHPUnit
  2. Run vendor/bin/php-coverage-badger /path/to/clover.xml /path/to/badge/destination.svg
    • e.g. vendor/bin/php-coverage-badger build/clover.xml report/coverage.svg

Acknowledgements

This library is forked from Michael Moussa's php-coverage-checker, derived from Marco Pivetta's post on CI test coverage checks, (*4)

Inspiration for generating an SVG badge from coverage results is taken from the coverage-badge Python library, derived from the Shields.io project., (*5)

The Versions

28/07 2017

dev-master

9999999-dev https://github.com/jaschilz/PhpCoverageBadge

Create a code coverage badge from a PHPUnit Clover XML file.

  Sources   Download

MIT

21/07 2017

2.0.0

2.0.0.0 https://github.com/jaschilz/PhpCoverageBadge

Create a code coverage badge from a PHPUnit Clover XML file.

  Sources   Download

MIT

30/09 2015

1.1.0

1.1.0.0 https://github.com/michaelmoussa/PhpCoverageChecker

Automated code coverage percentage checking

  Sources   Download

MIT

30/09 2015

1.0.0

1.0.0.0 https://github.com/michaelmoussa/PhpCoverageChecker

Automated code coverage percentage checking

  Sources   Download

MIT