Skip to content

Possibility To Run All Tests From Directory #670

@sprankhub

Description

@sprankhub

I would like to have the ability to run all MFTF tests from a specific directory.

Preconditions

  1. Magento 2.3.4
  2. MFTF 2.5.3

Steps to reproduce

  1. Put all your custom modules under one specific directory. This could just be app/code, although we put them under src.
  2. 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

  1. All MFTF tests from this directory can be executed with one simple command.

Actual result

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions