From 1b8c800443e6ccd2ec33693783e49e3e09865aca Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 26 May 2018 19:50:59 +0200 Subject: [PATCH] [TASK] Add a PHPUnit example configuration file (#16) --- .travis.yml | 5 +++++ Configuration/PHPUnit/ModelTests.xml | 24 ++++++++++++++++++++++++ README.md | 6 ++++++ 3 files changed, 35 insertions(+) create mode 100644 Configuration/PHPUnit/ModelTests.xml 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