File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/Magento/FunctionalTestingFramework/Util Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments