Why Your Test Suite Randomly Takes 15 Minutes Instead of 2 | Harness Blog
Blog post from Harness
A controlled Harness CI lab using Node.js, TypeScript, Vitest, and a separate Java/JUnit project found that test execution time can differ dramatically from end-to-end pipeline duration, with initialization, checkout, dependency handling, and reporting often dominating results. The experiments showed that retries can make flaky tests appear successful without resolving instability, while selective quarantine can prevent known failures from blocking merges while still rejecting unexpected regressions. Shared mutable state caused tests to fail when run together, demonstrating that isolation should be addressed before adding parallelism, and sharding provided little benefit for small suites where setup overhead outweighed test runtime. Dependency caching produced only modest gains after accounting for cache restore time, underscoring the need to measure cold and warm runs. Harness Test Intelligence successfully skipped four of 21 Java tests after a scoped code change, illustrating change-aware test selection even though time savings were limited at small scale. The overall recommendation is to first identify pipeline bottlenecks and test nondeterminism, then apply caching, parallel execution, and selective testing based on measured evidence rather than assumed performance improvements.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Developer Experience | 1 | 415 | 213 | 99 | +37% |
| Observability | 1 | 1,971 | 343 | 99 | +10% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.