build(backend): add db-aware testing tooling #9

Merged
mcataford merged 6 commits from build/test-harness into main 2023-08-12 15:45:51 +00:00
mcataford commented 2023-08-12 15:28:08 +00:00 (Migrated from github.com)

To avoid depending on mocks and to avoid drifting from what the app uses, tests should run on Postgres. This introduces a test harness that uses an ephemeral Postgres container, runs migrations, runs the tests and trashes it afterwards.

The whole thing is wrapped in task be:test and is used in CI as well for parity.

To avoid depending on mocks and to avoid drifting from what the app uses, tests should run on Postgres. This introduces a test harness that uses an ephemeral Postgres container, runs migrations, runs the tests and trashes it afterwards. The whole thing is wrapped in `task be:test` and is used in CI as well for parity.
This repo is archived. You cannot comment on pull requests.
No description provided.