Skip to content

Commit

Permalink
Add pg_ctl info for test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippRue committed May 7, 2021
1 parent 75098ab commit 2eb38b4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ pre-commit install # install pre-commit hooks
pytest -v # discover and run all tests
```

Note that `pytest -v` will create a test database and profile which requires to find the `pg_ctl` command.
If `pg_ctl` is not found you need to nake sure that postgres is installed and then add the localtion of
`pg_ctl` to the `PATH`:
```
# add postgres path for pg_ctl to PATH
# this is an example for Postgres 9.6 installed on a mac
PATH="/Applications/Postgres.app/Contents/Versions/9.6/bin/:$PATH"
export PATH
```

## License

MIT
Expand Down

0 comments on commit 2eb38b4

Please sign in to comment.