1. Go to this page and download the library: Download codeception/robo-paracept 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/ */
codeception / robo-paracept example snippets
e_once 'vendor/codeception/codeception/autoload.php';
class RoboFile extends \Robo\Tasks
{
use Codeception\Task\Merger\ReportMerger;
use Codeception\Task\Splitter\TestsSplitterTrait;
}
$result = $this->taskSplitTestsByGroups(5)
->testsFrom('tests/acceptance')
->projectRoot('.')
->groupsTo('tests/_data/group_')
->run();
// task returns a result which contains information about processed data:
// optionally check result data
if ($result->wasSuccessful()) {
$groups = $result['groups'];
$tests = $result['tests'];
$filenames = $result['files'];
}
$result = $this->taskSplitTestFilesByGroups(5)
->testsFrom('tests')
->groupsTo('tests/_data/paratest_')
->run();
// optionally check result data
if ($result->wasSuccessful()) {
$filenames = $result['files'];
}
$result = $this->taskSplitTestsByTime(5)
->testsFrom('tests/acceptance')
->projectRoot('.')
->groupsTo('tests/_data/group_')
->run();
// optionally check result data
if ($result->wasSuccessful()) {
$filenames = $result['files'];
}