PHP code example of chinthakagodawita / codeception-timekeeper
1. Go to this page and download the library: Download chinthakagodawita/codeception-timekeeper 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/ */
chinthakagodawita / codeception-timekeeper example snippets
class RoboFile extends \Robo\Tasks {
use \ChinthakaGodawita\CodeceptionTimekeeper\SplitsTestsByTime;
public function taskSplitTests(): \Robo\Result
{
$groups = 3;
$timeReportLocation = '_data/time_report.json';
return $this->taskSplitTestsByTime($groups, $timeReportLocation)
->projectRoot('.')
->testsFrom('tests')
->groupsTo('tests/_data/timekeeper/group_')
->run();
}
}
e_once 'vendor/codeception/codeception/autoload.php';
shell script
php vendor/bin/robo split:tests