diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-18 12:22:17 -0400 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-18 12:22:17 -0400 |
commit | 015b51ba84a7897979d0d09bb13c2ea655c3032f (patch) | |
tree | c3dd504143823c78663c51bfe57ad4ec2245f02a /README.md | |
parent | 065c844fde679686ad82e2dcf62a12f3b0b690f1 (diff) |
Add a basic test for static content
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -144,3 +144,20 @@ If you use the checkout link again, travelynx will perform a force checkout: it will log that you have left the train at the specified station, but omit arrival time, delay, and other real-time data. At the moment, this data cannot be specified manually. + +Testing +--- + +The test scripts assume that travelynx.conf contains a valid database +connection. However, they will override db.user to `travelynx_temp`. This +must be an account which has the same password as the one specified in +travelynx.conf, but uses a temporary schema. This way, tests will always +start from a clean slate and will not leave any trace in the database. + +Create this account as follows: + +* `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`. |