-
Notifications
You must be signed in to change notification settings - Fork 131
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
Conversation
$groupPath = PROJECT_ROOT . '/src/Magento/FunctionalTestingFramework/Group'; | ||
foreach (glob($groupPath. '/*.php') as $suitePhpFile) { | ||
include_once $suitePhpFile; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Group
is in MFTF namespace. I am not sure why we need to require it in particular. Do you see the tests file being generated for the suite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In standalone, the root _suite is dev/tests/_suite in MFTF and that's why it will not read dev/tests/acceptance/tests/_suite. Should we?
Included suite php files to standalone_bootstrap
Updated $ROOT_SUITE dir path based on installation type
added getRootSuiteDirPath
fixed static check
@@ -28,7 +29,7 @@ public function get($filename, $scope) | |||
{ | |||
// First pick up the root level test suite dir | |||
$paths = glob( | |||
FilePathFormatter::format(TESTS_BP) . self::ROOT_SUITE_DIR | |||
FilePathFormatter::format($this->getRootSuiteDirPath()) . self::ROOT_SUITE_DIR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic in getRootSuiteDirPath() method is not straight forward. Can we check
MAGENTO_BP . DIRECTORY_SEPARATOR . 'dev/tests/acceptance' and TEST_BP, If they are different, read both paths, otherwise, just read TEST_BP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed logic as adobe, tested for all suite locations + unit tests and it works. Thanks
added additional path for standalone
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Please fix static tests before merge |
fixed static checks
Added dev/tests/acceptance path of _suite to file to getFileCollection() if it's a valid path
Description
Fixed Issues (if relevant)
Contribution checklist