I would like to have the ability to run all MFTF tests from a specific directory.
Preconditions
- Magento 2.3.4
- MFTF 2.5.3
Steps to reproduce
- Put all your custom modules under one specific directory. This could just be
app/code, although we put them under src.
- Try to find a way to run all MFTF tests from this directory without editing the tests themselves and without listing every module separately.
Expected result
- All MFTF tests from this directory can be executed with one simple command.
Actual result
- Executing all MFTF tests from one directory with one simple command seems to be impossible currently.
With unit or integration tests, I can simply define a phpunit.xml file and include all tests from specific directories by using wildcards etc. This seems to be impossible with MFTF tests. Possibilities I thought of:
- Use Suites: Adding a Suite configuration in
dev/tests/acceptance/tests/_suite similar to the suite.xml.sample one seems to be nearly what I want. However, I need to list all modules explicitly in there. This is bad, because new modules are then not automatically included in the test execution.
- Use Groups: This has the big disadvantage that I need to edit every test in the directory and add the same group to it. Hence, this is not an option.
I would like to have the ability to run all MFTF tests from a specific directory.
Preconditions
Steps to reproduce
app/code, although we put them undersrc.Expected result
Actual result
With unit or integration tests, I can simply define a
phpunit.xmlfile and include all tests from specific directories by using wildcards etc. This seems to be impossible with MFTF tests. Possibilities I thought of:dev/tests/acceptance/tests/_suitesimilar to thesuite.xml.sampleone seems to be nearly what I want. However, I need to list all modules explicitly in there. This is bad, because new modules are then not automatically included in the test execution.