devlib / candybar
Tools to make phpunit tests results easier to understand follow, share and integrate
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 5
pkg:composer/devlib/candybar
Requires
- adrian7/badges-poser: ^1.2.3
- laravie/parser: ~1.0
- phpunit/php-code-coverage: ^5.0
- phpunit/phpunit: ^6.0|^7.0
- symfony/filesystem: ^4.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-25 15:42:49 UTC
README
Get the candies from your PHPUnit's tests results
(!) Warning: this project is under heavy development. Expect breaking changes with every new 0.x release.
Check the roadmap for upcoming features. Issues/pull requests are welcome.
Installation
$ composer require devlib/candybar --dev && vendor/bin/candybar init
Running the bar
After installing (init), a folder called candybar will show up in your project's root directory.
There you'll find the config.php, styles and themes folders.
The bar section of the config file is used to add/remove commands supported by candybar and
the styles folder is used to lookup styles when running the coverage:style command.
To get a list of all available commands run:
$ vendor/bin/candybar list
To get help for a specific command:
$ vendor/bin/candybar help [command]
Available candies (commands)
build:badge:dategenerates build date badge with the current date/timecoverage:styleapplies a style to the html coverage presentationcoverage:badgegenerates badge from clover xml coverage statslicense:badgegenerates license badge, use arguments to set license and colorreadme:add-badgesadds badges to the readme file using placeholders
Examples
vendor/bin/candybar coverage:style defaultvendor/bin/candybar coverage:badge badges/coverage.svg --style=plasticvendor/bin/candybar license:badge badges/license.svg --style=plasticvendor/bin/candybar readme:add-badges badges --template=README.tpl.md --output=README.md --backup