devotion/phpunit-chart-bundle

Devotion PHPUnit Chart Bundle

0.3.2 2016-06-28 13:17 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:29:01 UTC


README

Latest Stable Version Build Status SensioLabsInsight License

Symfony bundle which generates charts from phpunit XML report files.

Composer

Install via composer

{
    "require": {
        "devotion/phpunit-chart": "~0.3"
    }
}

Database

In order to persist unit tests coverage evolution (only on changes), update with doctrine

app/console doctrine:database:create
app/console doctine:schema:update --force

Configuration

In this example above, default values are used:

devotion_php_unit_chart:
    base_path: %kernel.root_dir%/../
    type: pie-basic
    history_size: 10

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:

<domain.tld>/?file=default.xml
<domain.tld>/?file=default.xml&title=AppBundle coverage
<domain.tld>/?file=default.xml&type=areaspline