Skip to content

MQE-2040: Unable to run suites from standalone MFTF #655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 31, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ public function get($filename, $scope)
. DIRECTORY_SEPARATOR . '*.xml'
);

// include root suite dir when running standalone version
$altPath = MAGENTO_BP . DIRECTORY_SEPARATOR . 'dev/tests/acceptance';

if (realpath($altPath) && ($altPath !== TESTS_BP)) {
$paths = array_merge(
$paths,
glob(
FilePathFormatter::format($altPath) . self::ROOT_SUITE_DIR
. DIRECTORY_SEPARATOR . '*.xml'
)
);
}

// Then merge this path into the module based paths
// Since we are sharing this code with Module based resolution we will unnecessarily glob against modules in the
// dev/tests dir tree, however as we plan to migrate to app/code this will be a temporary unneeded check.
Expand Down