Your Tests Are Slow and Brittle: You're Testing the Wrong Thing
Are your tests slow and brittle? It might be your application's architecture. Learn how to create a testable architecture that fosters efficient testing.

Why Are Your Tests Slow and Brittle?
At every technical meeting, the mantra "We should write more tests" resonates. Everyone agrees, recognizing the importance of testing for quality assurance. Yet, when developers get back to their desks, they often feel overwhelmed. Why? Because testing is frequently seen as a chore.
Tests can be excruciatingly slow, with full suites taking long enough for several coffee breaks. Often, test code becomes more complex than the business logic it's meant to verify. The worst part? These tests are incredibly brittle. A minor change, like altering a CSS class or adding a field to a JSON response, can trigger a cascade of test failures. If this scenario sounds familiar, don't lose hope. The problem might not be your tests but your application architecture, which complicates the testing process.
What's the Root Cause? Application Architecture
Many developers mistakenly equate testing with simulating user behavior. This leads to a focus on end-to-end or integration tests, which are slow and brittle. Here's what usually happens:
- End-to-End Tests: Initiating a web server, sending a real HTTP request, and verifying the response. While useful, overreliance on these tests is a mistake.
- Performance Issues: Each test is slow, taking hundreds of milliseconds. With hundreds or thousands of tests, the total time can stretch to several minutes, severely impacting your development feedback loop.
- Brittleness: These tests are tightly coupled to external details, so minor changes can lead to numerous failures.
Related Articles

Inclusive Personas and User Research in Software Development
Explore how inclusive personas and user research enhance software development. Learn strategies to create accessible and diverse products.
Sep 28, 2025

Unlocking CSS Typed Arithmetic: A New Era for Web Design
CSS Typed Arithmetic in Chrome 140 revolutionizes how developers calculate styles, allowing for mixed data types in CSS. Learn how to simplify your coding today.
Sep 26, 2025










