I have a project that is broken down into the following:
ProjectName/
ModuleOne/
ModuleTwo/
each module has a phpunit.xml and a test directory. Each module also has their own composer.json
and so on and so forth, allowing me to easily package this as one library or allow you to get specific modules based on your needs.
The issue I have is that since each module has its own test folder with a phpunit.xml file, I need to create another phpunit.xml at the root of the project that runs each modules tests. I thought I could do this via:
<testsuites>
<testsuite name="ModuleOne">
<directory>ModuleOne/tests/</directory>
</testsuite>
<testsuite name="Moduletwo">
<directory>Moduletwo/tests/</directory>
</testsuite>
</testsuites>
But when I run phpunit from the root directory I get a message saying no tests were run. Why? I specified the test suite name and the directory of where the tests live...
Is there something I am missing?
tests/
directory and inside each there is aphpunit.xml
and abootstrap.php
for those tests. – TheWebs