diff --git a/README.md b/README.md index 89b54e4..c50a4cd 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,18 @@ ruff check . black --check . ``` +### Testing against PostgreSQL + +The suite runs on SQLite by default; the Postgres-only tests (search backend) +are skipped there. To run everything against a real Postgres: + +```bash +docker run -d --name evection-pg-test -e POSTGRES_PASSWORD=testpw -e POSTGRES_DB=evection \ + -p 127.0.0.1:55432:5432 postgres:16 +DATABASE_URL=postgres://postgres:testpw@127.0.0.1:55432/evection pytest +docker rm -f evection-pg-test +``` + ## License [GNU AGPL-3.0-or-later](LICENSE) — if you run a modified version of Evection as