Update test section in README
This commit is contained in:
parent
4aa83625d3
commit
f7db1c6a26
1 changed files with 5 additions and 9 deletions
14
README.md
14
README.md
|
@ -149,15 +149,11 @@ Testing
|
||||||
---
|
---
|
||||||
|
|
||||||
The test scripts assume that travelynx.conf contains a valid database
|
The test scripts assume that travelynx.conf contains a valid database
|
||||||
connection. However, they will override db.user to `travelynx_temp`. This
|
connection. They will create a test-specific schema, perform all operations in
|
||||||
must be an account which has the same password as the one specified in
|
it, and then drop the schema. As such, the database specified in the config is
|
||||||
travelynx.conf, but uses a temporary schema. This way, tests will always
|
not affected.
|
||||||
start from a clean slate and will not leave any trace in the database.
|
|
||||||
|
|
||||||
Create this account as follows:
|
Nevertheless, bugs may happen. Do NOT run tests on your production database.
|
||||||
|
Please use a separate development database instead.
|
||||||
* `createuser -P travelynx_temp` (enter the password you are using for the
|
|
||||||
regular development user)
|
|
||||||
* from inside a psql admin shell: `alter role travelynx_temp set search_path = pg_temp;`
|
|
||||||
|
|
||||||
Run the tests by executing `prove`.
|
Run the tests by executing `prove`.
|
||||||
|
|
Loading…
Reference in a new issue