diff --git a/.travis.yml b/.travis.yml index 63d42af..bb000b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,6 +62,11 @@ script: echo "Running the unit tests"; composer ci:tests:unit; +- > + echo; + echo "Running the model tests"; + .Build/vendor/bin/phpunit -c Configuration/PHPUnit/ModelTests.xml; + - > echo; echo "Running the functional tests"; diff --git a/Configuration/PHPUnit/ModelTests.xml b/Configuration/PHPUnit/ModelTests.xml new file mode 100644 index 0000000..6558fec --- /dev/null +++ b/Configuration/PHPUnit/ModelTests.xml @@ -0,0 +1,24 @@ + + + + + + ../../Tests/Unit/Domain/Model + + + diff --git a/README.md b/README.md index 85bc0c3..a708e5c 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,12 @@ In the Run configurations, copy the PHPUnit configuration and use these settings - [x] Use alternative configuration file - use `.Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml` +### Example PHPUnit configuration file with a test suite + +The file [`Configuration/PHPUnit/ModelTests.xml`](Configuration/PHPUnit/ModelTests.xml) +contains an example of a PHPUnit configuration file that has a test suite +(based on the unit tests configuration file from the testing framework). + ## Creating new extensions with automated tests For creating new extensions, I recommend taking