Skip to content
Preptima
mediumScenarioDesignMidSeniorLead

Your test suite takes fifty minutes and every merge waits for it. How do you fix that?

5 min readUpdated 2026-08-15

Answer

Short answer

Profile before cutting: suite time concentrates in a few tests, and the cause is usually repeated setup or real waiting rather than work. Parallelise what is independent, move the slow and rarely-failing out of the merge path, and treat deleting redundant tests as legitimate.

Was this answer helpful?

Likely follow-ups

  • You want to parallelise but tests share a database. What are your options?
  • Which tests would you move to a nightly run, and what do you lose?
  • How does a flaky test at one failure in fifty affect a fifty-minute pipeline?
  • When is deleting a test the right answer?

Related questions