zondor/codeception-paracept-json-merge

Codeception 并行运行时的 json 报告合并,可以将多个 json 报告合并为一个,并生成 HTML 报告

1.1.1 2016-04-29 07:40 UTC

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

安装

  1. 通过 Composer 安装 Codeception
  2. "zondor/codeception-paracept-json-merge": "~1.0" 添加到您的 composer.json
  3. 运行 composer install
  4. 编辑您的 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();