Setting up tests

Edit on GitHub

To get all the things working, you need to prepare a proper organization for your tests. For this, you, first of all, have the root codeception.yml file . Its main responsibility is to include other codeception.yml files that contain the suite configuration. See Configuration for details.

Directory structure

To organize your tests, follow this structure of the tests directory:

tests/
    PyzTest/
        ApplicationA/
            ModuleA/
                Communication/
                Presentation/
                ...
                codeception.yml
        ApplicationB
            ModuleA
                Communication/
                Presentation/
                Business/
                ...
                codeception.yml

Check out the organization within the tests/PyzTest/ directory in Spryker Master Suite for example.

Together with the root configuration, you are now able to organize your tests in a way that each test suite can have its own helper applied and can be executed separately.

Next steps