devotion / phpunit-chart-bundle
Devotion PHPUnit Chart Bundle
0.3.2
2016-06-28 13:17 UTC
Requires
- doctrine/doctrine-bundle: ~1.4
- symfony/framework-bundle: ~2.8
This package is not auto-updated.
Last update: 2024-09-14 18:29:01 UTC
README
一个Symfony包,用于从phpunit XML报告文件生成图表。
Composer
通过composer安装
{ "require": { "devotion/phpunit-chart": "~0.3" } }
数据库
为了持久化单元测试覆盖率演变(仅在更改时更新),使用doctrine进行更新
app/console doctrine:database:create app/console doctine:schema:update --force
配置
在上面的示例中,使用默认值
devotion_php_unit_chart: base_path: %kernel.root_dir%/../ type: pie-basic history_size: 10
用法
必填URL参数:
- file(报告文件名,在配置中定义的基础路径中)
可选URL参数:
- title(纯文本,要显示的图表标题)
- type(要使用的图表类型):-- pie-basic -- areaspline
示例:
<domain.tld>/?file=default.xml <domain.tld>/?file=default.xml&title=AppBundle coverage <domain.tld>/?file=default.xml&type=areaspline