Closed
Description
Allow running tests for modules installed in Magento instance via vendor directory.
Preconditions
- Install Magento 2.2.x or later
- Install custom module using composer (so module is installed under MAGENTO_BP/vendor
- Custom module contains tests under Test/Mftf
- Mftf is installed and configured per DevDocs instructions
Steps to reproduce
- cd MAGENTO_BP/dev/tests/acceptance
- vendor/bin/robo generate:tests
Expected result
- Tests from custom module are generated under MAGENTO_BP/dev/tests/acceptance/tests/functional/Magento/FunctionalTest/_generated/default
Actual result
- Custom module is completely ignored as MAGENTO_BP/vendor is not parsed as a location for tests. Only the following paths are parsed:
a. MAGENTO_BP/app/code/
b. MAGENTO_BP/dev/tests/acceptance/vendor
c. MAGENTO_BP/dev/tests/acceptance/tests/functional/Magento/FunctionalTest