I am in the process of trying to implement codeception in a fairly large project at the moment and the default flat directory layout that codeception uses is not viable as we will have too much tests squashed into one directory.
Codeception uses the following structure:
tests/ - _data - _output - _support - acceptance - functional - unit
We are trying include the tests in our mvc application structure so we could have the following:
application/
- controllers/
- folder1/
- controller1.php
- test.php
- folder2/
- controller2.php
- test.php
- views/
- view1/
- view1.php
- test.php
- view2/
- view2.php
- test.php
This way the structure makes it a bit easier to follow for us as otherwise we will end up with 1000s of tests in one folder. I am aware that we can define sub namespaces within the main codeception.yml however it still uses the same flat directory layout which we don't want to use.
What would a codeception bootstrap look like to get it to look into the top level folder and just run any test within directories below it and include it in the main runner?