Skip to content

Commit 4f21a74

Browse files
committed
MQE-351:Single test run for running tests in parallel mode
- add relative filepath and php ending to testManifest output
1 parent db4cd0d commit 4f21a74

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Magento/FunctionalTestingFramework/Util/TestManifest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,21 @@ class TestManifest
1717
*/
1818
private $filePath;
1919

20+
/**
21+
* Relative dir path from functional yml file. For devOps execution flexibility.
22+
*
23+
* @var string
24+
*/
25+
private $relativeDirPath;
26+
2027
/**
2128
* TestManifest constructor.
2229
*
2330
* @param string $path
2431
*/
2532
public function __construct($path)
2633
{
34+
$this->relativeDirPath = substr($path, strlen(dirname(dirname(TESTS_BP))) + 1);
2735
$filePath = $path . DIRECTORY_SEPARATOR . 'testManifest.txt';
2836
$this->filePath = $filePath;
2937
$fileResource = fopen($filePath, 'w');
@@ -43,7 +51,7 @@ public function recordCest($cestName, $tests)
4351

4452
foreach ($tests as $test)
4553
{
46-
$line = $cestName . ':' . $test->getName();
54+
$line = $this->relativeDirPath . DIRECTORY_SEPARATOR . $cestName . '.php:' . $test->getName();
4755
fwrite($fileResource, $line ."\n");
4856
}
4957

0 commit comments

Comments
 (0)