PHP code example of zondor / codeception-paracept-json-merge
1. Go to this page and download the library: Download zondor/codeception-paracept-json-merge library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zondor / codeception-paracept-json-merge example snippets
$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();