Problem:
Tests are taking too long to execute, slowing down feedback loops for developers.
Examples:
- Tests with complex logic, multiple branches, or varied inputs
- Extended-duration tests running automatically as part of the standard suite
- Tests without clear, simple pass/fail criteria
Solutions:
- Enforce a 20-30 second maximum per test; fail the suite if exceeded
- Decompose complex tests into smaller, focused tests with single assertions
- Move extended tests to a separate, opt-in suite (not part of default commit hooks)
Problem:
Tests are taking too long to execute, slowing down feedback loops for developers.
Examples:
Solutions: