partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit aae407052d0c3d4800384f7103ac4329a90f447e
parent 73d3d545e8080185a526f99e8b328b197f255ebd
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed, 16 Sep 2015 17:31:13 +0200

Update documentation regarding unit tests

Diffstat:
Mdocumentation/developer/UNIT-TESTS.md | 13++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/documentation/developer/UNIT-TESTS.md b/documentation/developer/UNIT-TESTS.md @@ -1,6 +1,17 @@ # Functional / Unit Testing -Unit tests are usually ran by calling `phpunit -c app/`. This also generates a coverage report in the directory +In order to run functional / unit tests, you first need to define the following environment variable to specify +which test database you are using: + +`export SYMFONY__TESTDB=<databasetype>` + +The following databases are supported: + +- `mysql` +- `pgsql` +- `sqlite` + +The unit tests are ran by `phpunit -c app/`. This also generates a coverage report in the directory `reports/coverage`. If you need to run individual tests, you can do so by using the following command: