Docker and CI/CD · Senior · Question 36 of 75
How do you speed up a large test suite that has to run on every PR?
- ✓Correct answer: Shard tests across runners, balanced by past timings
- 2Run only the tests that failed in the previous run
- 3Disable the slowest tests until the next release
Explanation
Splitting by file count leaves one shard far slower; timing-based splitting evens them out. Affected-test selection in monorepos reduces the work further.