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
Merged

Conversation

soumyau
Copy link
Contributor

@soumyau soumyau commented Mar 24, 2020

Added dev/tests/acceptance path of _suite to file to getFileCollection() if it's a valid path

Description

Fixed Issues (if relevant)

  1. magento/magento2-functional-testing-framework#<issue_number>: Issue title
  2. ...

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/verification tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)
  • Changes to Framework doesn't have backward incompatible changes for tests or have related Pull Request with fixes to tests

@coveralls
Copy link

coveralls commented Mar 24, 2020

Coverage Status

Coverage increased (+1.5%) to 54.656% when pulling aa9de30 on MQE-2040 into 4267fee on MFTF3.0.0-RC2.

@soumyau soumyau changed the base branch from develop to MFTF3.0.0-RC2 March 24, 2020 19:28
$groupPath = PROJECT_ROOT . '/src/Magento/FunctionalTestingFramework/Group';
foreach (glob($groupPath. '/*.php') as $suitePhpFile) {
include_once $suitePhpFile;
}
Copy link
Contributor

@jilu1 jilu1 Mar 27, 2020

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?

Copy link
Contributor

@jilu1 jilu1 left a 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
@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

@jilu1 jilu1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@jilu1
Copy link
Contributor

jilu1 commented Mar 31, 2020

Please fix static tests before merge

@soumyau soumyau merged commit cbd7c85 into MFTF3.0.0-RC2 Mar 31, 2020
@soumyau soumyau deleted the MQE-2040 branch April 30, 2020 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants