{
  "id": 21941462,
  "title": "Your Tests Take Twenty Minutes and You Have Stopped Running Them",
  "url": "https://urgent.news/2026/11/26/your-tests-take-twenty-minutes-and-you-have-stopped-running-them",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-26T07:18:48.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/asael_shinder_9f53bdca840/your-tests-take-twenty-minutes-and-you-have-stopped-running-them-3pc3"
  },
  "original_language": "en",
  "account": "The test suite once ran in two minutes when you first joined the team. Now it takes twenty minutes. Although you still run it before pushing changes, you sometimes skip testing when making multiple changes at once. This leads to spending an hour investigating which of the recent changes caused failures. Tests provide feedback, but like all feedback, it becomes less valuable if it arrives too late. Research by Jakob Nielsen and Robert Miller identifies three time limits for feedback: a tenth of a second feels instant, one second is the maximum before thought breaks, and ten seconds is when people start to lose focus. Twenty minutes exceeds all three limits. Since nobody waits that long, they stop asking the suite questions. The real cost isn't the twenty minutes, but the lost inquiries. Did that recent small change break something? You would have caught it in two minutes. You won't check in twenty minutes, so treat the slowness as a problem worth addressing, not as an excuse. First, measure. Many test tools can identify which tests take the longest. Typically, a few slow tests dominate the total, often those starting a real database or waiting for a timer. Consider running fewer tests more frequently. Most tools allow running only the tests for the file you're working on or those affected by your changes. Keep the full suite for before pushing and in the pipeline. Examine the slowest tests individually. Can a sleep be replaced with a wait for a condition? Can a test that starts the entire application test the same thing at a lower level? Can tests be run in parallel? Discuss these issues with your team, backed by data. The suite's runtime has increased from two minutes to twenty over the past year. Present the ten tests that contribute half of the delay. It's easier to discuss specific issues than vague slowness. A fast feedback loop checked a few times a day is more valuable than a perfect one you no longer ask for.",
  "summary": "When you joined, the test suite finished in about two minutes. Now it takes twenty. You still run it before you push, most of the time. But during the day you have started making several changes at once, running nothing, and hoping. When something fails, you spend an hour working out which of your six changes caused it. Your tests are feedback, and like any feedback, it loses most of its value…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}