Project

General

Profile

Actions

action #72082

closed

Reduce test runtime, e.g. less reliance on test fixtures or test database instances

Added by okurz about 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
2020-09-18
Due date:
% Done:

0%

Estimated time:

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

Related issues 2 (0 open2 closed)

Related to openQA Project (public) - action #90371: Warnings "Subroutine JSON::PP::Boolean::(0+ redefined"Resolvedtinita2021-03-19

Actions
Copied from openQA Project (public) - action #71500: Potential optimization by skipping deployment checks in our tests (all except explicit deployment check tests)Resolvedokurz2020-09-18

Actions
Actions

Also available in: Atom PDF