zondor/codeception-paracept-json-merge

Codeception json reports merge for parallel run, can merge json reports into one , can generate html reports

1.1.1 2016-04-29 07:40 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:14:40 UTC


README

Codeception json reports merge for parallel run, can merge json reports into one , can generate html reports. Uses https://github.com/zondor/codeception-json-reporter

Installation

  1. Install Codeception via Composer
  2. Add "zondor/codeception-paracept-json-merge": "~1.0" to your composer.json
  3. Run composer install.
  4. Edit your Robo.php file
  $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();