Definition at line 12 of file DefaultTestManifest.php.
◆ __construct()
__construct |
( |
|
$suiteConfiguration, |
|
|
|
$testPath |
|
) |
| |
DefaultTestManifest constructor.
- Parameters
-
array | $suiteConfiguration | |
string | $testPath | |
Definition at line 43 of file DefaultTestManifest.php.
45 $this->manifestPath = dirname($testPath) . DIRECTORY_SEPARATOR .
'testManifest.txt';
46 $this->cleanManifest($this->manifestPath);
◆ addTest()
Takes a test name and set of tests, records the names in a file for codeception to consume.
- Parameters
-
- Returns
- void
Definition at line 56 of file DefaultTestManifest.php.
58 $this->testNames[] = $testObject->getCodeceptionName();
◆ generate()
Function which outputs a list of all test files to the defined testManifest.txt file.
- Returns
- void
Definition at line 66 of file DefaultTestManifest.php.
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);
generateSuiteEntries($fileResource)
◆ generateSuiteEntries()
generateSuiteEntries |
( |
|
$fileResource | ) |
|
|
protected |
Function which takes the test suites passed to the manifest and generates corresponding entries in the manifest.
- Parameters
-
- Returns
- void
Definition at line 86 of file DefaultTestManifest.php.
88 foreach ($this->getSuiteConfig() as $suiteName => $tests) {
89 $line =
"-g {$suiteName}";
90 fwrite($fileResource, $line . PHP_EOL);
◆ $manifestPath
◆ $testNames
◆ DEFAULT_CONFIG
const DEFAULT_CONFIG = 'default' |
The documentation for this class was generated from the following file:
- vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Util/Manifest/DefaultTestManifest.php