28 private static $CLEARED_MANIFESTS = [];
45 $this->manifestPath = dirname($testPath) . DIRECTORY_SEPARATOR .
'testManifest.txt';
46 $this->cleanManifest($this->manifestPath);
58 $this->testNames[] = $testObject->getCodeceptionName();
68 $fileResource =
fopen($this->manifestPath,
'a');
70 foreach ($this->testNames as $testName) {
71 $line = $this->relativeDirPath . DIRECTORY_SEPARATOR . $testName .
'.php';
72 fwrite($fileResource, $line . PHP_EOL);
77 fclose($fileResource);
88 foreach ($this->getSuiteConfig() as $suiteName => $tests) {
89 $line =
"-g {$suiteName}";
90 fwrite($fileResource, $line . PHP_EOL);
101 private function cleanManifest(
$path)
104 if (in_array(
$path, self::$CLEARED_MANIFESTS)) {
109 if (file_exists(
$path)) {
113 self::$CLEARED_MANIFESTS[] =
$path;
__construct($suiteConfiguration, $testPath)
generateSuiteEntries($fileResource)