Skip to content

Commit cbd7c85

Browse files
authored
MQE-2040: Unable to run suites from standalone MFTF (#655)
* MQE-2040: Unable to run suites from standalone MFTF added additional path for standalone * MQE-2040: Unable to run suites from standalone MFTF fixed static checks
1 parent 4267fee commit cbd7c85

File tree

1 file changed

+13
-0
lines changed
  • src/Magento/FunctionalTestingFramework/Config/FileResolver

1 file changed

+13
-0
lines changed

src/Magento/FunctionalTestingFramework/Config/FileResolver/Root.php

+13
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ public function get($filename, $scope)
3232
. DIRECTORY_SEPARATOR . '*.xml'
3333
);
3434

35+
// include root suite dir when running standalone version
36+
$altPath = MAGENTO_BP . DIRECTORY_SEPARATOR . 'dev/tests/acceptance';
37+
38+
if (realpath($altPath) && ($altPath !== TESTS_BP)) {
39+
$paths = array_merge(
40+
$paths,
41+
glob(
42+
FilePathFormatter::format($altPath) . self::ROOT_SUITE_DIR
43+
. DIRECTORY_SEPARATOR . '*.xml'
44+
)
45+
);
46+
}
47+
3548
// Then merge this path into the module based paths
3649
// Since we are sharing this code with Module based resolution we will unnecessarily glob against modules in the
3750
// dev/tests dir tree, however as we plan to migrate to app/code this will be a temporary unneeded check.

0 commit comments

Comments
 (0)