zondor / codeception-paracept-json-merge
Codeception 并行运行时的 json 报告合并,可以将多个 json 报告合并为一个,并生成 HTML 报告
1.1.1
2016-04-29 07:40 UTC
Requires
- codegyre/robo: ^0.6
- zondor/codeception-json-reporter: ^1.0
Requires (Dev)
- codeception/codeception: ~2.0
This package is not auto-updated.
Last update: 2024-09-14 18:26:15 UTC
README
Codeception 并行运行时的 json 报告合并,可以将多个 json 报告合并为一个,并生成 HTML 报告。使用了 https://github.com/zondor/codeception-json-reporter
安装
- 通过 Composer 安装 Codeception
- 将
"zondor/codeception-paracept-json-merge": "~1.0"添加到您的composer.json - 运行
composer install - 编辑您的 Robo.php 文件
$sources = [
'tests/_output/report_1.json',
'tests/_output/report_2.json',
'tests/_output/report_3.json',
];
$parallel = $this->taskMergeJsonReports()
->from($sources)
->into("tests/_output/result_FINAL.html")
->setOutputFormat('html')
->run();
$parallel = $this->taskMergeJsonReports()
->from($sources)
->into("tests/_output/result_FINAL.json")
->setOutputFormat('json')
->run();