PHPUnit Chart Bundle
, (*1)
Symfony bundle which generates charts from phpunit XML report files., (*2)
Composer
Install via composer, (*3)
``` js
{
"require": {
"devotion/phpunit-chart": "~0.3"
}
}, (*4)
## Database
In order to persist unit tests coverage evolution (only on changes), update with doctrine
``` js
app/console doctrine:database:create
app/console doctine:schema:update --force
Configuration
In this example above, default values are used:, (*5)
``` yaml
devotion_php_unit_chart:
base_path: %kernel.root_dir%/../
type: pie-basic
history_size: 10, (*6)
## Usage
__Mandatory URL parameters__:
- file (the report filename, in the base path defined in your configuration)
__Optional URL parameters__:
- title (In plain text, the chart title to display)
- type (The chart type to use):
-- pie-basic
-- areaspline
__Examples__:
``` yaml
<domain.tld>/?file=default.xml
<domain.tld>/?file=default.xml&title=AppBundle coverage
<domain.tld>/?file=default.xml&type=areaspline