Skip to content

Don't run migrations for every test #2167

@slifty

Description

@slifty

Right now our test suite runs migrations for every test (ensuring the tests is working on a clean DB state / avoiding contamination across tests). A faster way to achieve this would be to have the suite run migrations once at the start of running tests, store the resulting database state into a loadable format, and re-load that state directly for each test.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done & Cleared

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions