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
17
17
*/
18
18
private $ filePath ;
19
19
20
+ /**
21
+ * Relative dir path from functional yml file. For devOps execution flexibility.
22
+ *
23
+ * @var string
24
+ */
25
+ private $ relativeDirPath ;
26
+
20
27
/**
21
28
* TestManifest constructor.
22
29
*
23
30
* @param string $path
24
31
*/
25
32
public function __construct ($ path )
26
33
{
34
+ $ this ->relativeDirPath = substr ($ path , strlen (dirname (dirname (TESTS_BP ))) + 1 );
27
35
$ filePath = $ path . DIRECTORY_SEPARATOR . 'testManifest.txt ' ;
28
36
$ this ->filePath = $ filePath ;
29
37
$ fileResource = fopen ($ filePath , 'w ' );
@@ -43,7 +51,7 @@ public function recordCest($cestName, $tests)
43
51
44
52
foreach ($ tests as $ test )
45
53
{
46
- $ line = $ cestName . ': ' . $ test ->getName ();
54
+ $ line = $ this -> relativeDirPath . DIRECTORY_SEPARATOR . $ cestName . '.php : ' . $ test ->getName ();
47
55
fwrite ($ fileResource , $ line ."\n" );
48
56
}
49
57
You can’t perform that action at this time.
0 commit comments