Actions
action #72082
closedReduce test runtime, e.g. less reliance on test fixtures or test database instances
Description
Motivation¶
Our tests can run very long which affects feedback cycles. We have many integration tests always initializing a test database with schema. Maybe we can improve by relying less on test fixtures or even completely on test database instances
Acceptance criteria¶
- AC1: All tests have been reviewed for their use of fixtures and the test database
- AC2: Test databases are only instantiated where explicitly needed
- AC3: Test databases are only initialized with data that is actually needed for specific tests
Suggestions¶
- Find all tests that instantiate a test database with fixtures and try instead to use initialization of only necessary data
- Find all tests that instantiate a test database and try instead to use instantiation of data objects directly instead of using a database
- Optional: Rework tests to not need a database at all anymore
Actions