build(backend): add db-aware testing tooling #9
No reviewers
Labels
No labels
automerge
backend
bug
ci/tooling
dependencies
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
invalid
question
research
test-dependencies
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: marc/rotini#9
Loading…
Reference in a new issue
No description provided.
Delete branch "build/test-harness"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.