Nominatim::DB tests against separate postgresql database

This commit is contained in:
marc tobias
2020-04-13 17:48:20 +02:00
parent 553d8a828c
commit 38c21de0ee
6 changed files with 200 additions and 10 deletions

View File

@@ -46,11 +46,13 @@ Very low coverage.
To execute the test suite run
cd test/php
phpunit ../
UNIT_TEST_DSN='pgsql:dbname=nominatim_unit_tests' phpunit ../
It will read phpunit.xml which points to the library, test path, bootstrap
strip and set other parameters.
The database set by `UNIT_TEST_DSN` will be deleted and recreated. Not setting
it will skip some tests as pending, but not fail the tests.
BDD Functional Tests
====================