Developers Purge Unit Tests as AI Shifts Coding Priorities
Sazabi founder deletes 800k lines of test code to accelerate AI-driven development cycles.
Overview
A growing movement among AI-augmented developers is challenging the long-standing orthodoxy of comprehensive unit testing. Prominent figures in the software engineering community, including Sherwood of Sazabi and developer Richard Wu, have begun deleting hundreds of thousands of lines of unit test code from their repositories. This trend reflects a strategic pivot toward higher-level testing methodologies, such as end-to-end (E2E) and integration tests, which are believed to better align with the capabilities and workflows of modern AI coding agents.
The shift suggests that as AI models become more proficient at generating correct code on the first attempt, the traditional role of unit tests—serving as granular verification of small code units—may be becoming redundant or even counterproductive. Developers are finding that these lower-level tests often slow down development cycles, increase CI/CD times, and potentially constrain the ability of AI agents to refactor or improve code freely.
The Purge: Scale and Rationale
The catalyst for this trend began with a public declaration by Sherwood, founder of Sazabi, who revealed that his team had removed 800,000 lines of unit tests from their monorepo. This was not an isolated incident but part of a broader pattern observed across social media platforms like X, where developers are increasingly sharing similar experiences. The decision was driven by three primary hypotheses regarding the negative impact of unit tests in an AI-centric workflow.
"Unit tests 'lock-in' slop code by making it hard to change or remove." — Sherwood
First, Sherwood argued that unit tests can inadvertently enforce bad practices. When a test suite is tightly coupled to a specific implementation, it creates a high barrier to refactoring. If the underlying code logic is flawed or inefficient (often referred to as "slop"), the tests will fail if the code is changed, effectively trapping developers into maintaining suboptimal solutions rather than rewriting them cleanly. For AI agents that aim to optimize code continuously, this rigidity is a significant liability.
Second, the administrative overhead of maintaining these tests was identified as a bottleneck. Unit tests increase the local workload for AI agents, which must parse, understand, and ensure compliance with thousands of narrow test cases before declaring a task complete. Furthermore, they inflate continuous integration (CI) times. In fast-paced development environments, the delay caused by running extensive unit test suites can negate the speed benefits gained from using AI coding assistants.
Sherwood’s actions have sparked a wider conversation about the value proposition of granular testing. As he noted, the sheer volume of deleted code highlights a potential inefficiency in how teams have historically prioritized test coverage over development velocity. The trend suggests that many existing unit tests may have been written to satisfy coverage metrics rather than to provide meaningful safety guarantees.
The New Hierarchy: E2E and Integration Tests
In place of unit tests, advocates of this new approach propose a simplified testing pyramid. Richard Wu, a developer actively participating in this discussion, outlined a clear priority list for the age of coding agents. According to Wu, the only tests that truly matter are those that verify the system as a whole, rather than its individual components.
1. Full End-to-End (E2E) Tests Wu emphasizes that E2E tests should be the top priority. These tests should involve zero mocking and operate in environments as close to production as possible. Tools like Playwright can be used to run these tests against live applications using test accounts. This approach ensures that the integration of all system parts works correctly in a real-world scenario, which is the ultimate goal of any software deployment.
2. Integration Tests The second tier consists of integration tests. While agents are becoming increasingly reliable, they still make mistakes, particularly when interacting with external services or complex APIs. Integration tests verify that different modules of the application work together as expected. This layer provides a safety net for the interactions between components without the brittleness associated with unit-level mocking.
This hierarchy represents a fundamental shift in mindset. Instead of verifying that every small function behaves correctly in isolation, developers are focusing on whether the entire application delivers the expected value. The assumption is that AI agents are capable of handling the logic within individual functions correctly, provided the overall architecture and interfaces are well-defined.
Industry Perspectives and Trade-offs
The trend has drawn mixed but generally open-minded reactions from the tech community. Nate Berkopec, a developer and advocate for practical engineering, described the idea as "not entirely stupid" and suggested it deserves experimentation. He acknowledged the trade-off: removing unit tests requires a heavier investment in acceptance and integration testing. However, he noted that the speed of these higher-level tests has improved significantly, making the trade potentially viable.
Antonio Sarosi offered a historical perspective, suggesting that the utility of unit tests has diminished since the pre-AI era. He argued that unit tests were originally designed to pin down specifications and verify important system rules when code was written manually. In the context of AI agents, he believes their primary remaining function is regression testing. Once the initial code is generated and verified, further unit tests may simply be redundant overhead.
ZYPHER, another community observer, noted that while much of the deleted code might indeed be low-quality "slop," the idea that unit tests trap agents in endless pursuit of tasks is debatable. However, the consensus is that the status quo is being questioned. The removal of these tests is not necessarily an abandonment of quality assurance, but rather a recalibration of where effort is best spent.
Balancing Speed and Reliability
As experimental results continue to emerge, the industry is beginning to explore how to balance the rapid delivery enabled by AI with the reliability traditionally guaranteed by comprehensive testing. The deletion of hundreds of thousands of lines of code is a bold statement that testing strategies must evolve alongside the tools used to write them.
"The tradeoff is you’re going to need way more testing at higher levels." — Nate Berkopec
The risk remains that without the granular safety net of unit tests, bugs may slip through to production. However, proponents argue that modern E2E and integration tests, combined with the inherent correctness of AI-generated code, can mitigate this risk. The key lies in rigorous higher-level testing and robust monitoring.
This trend highlights a broader rethinking of software development lifecycles. As AI agents take on more of the coding burden, the human role shifts toward architectural oversight and verification of end-user outcomes. The question is no longer just "does this function work?" but "does the entire system work for the user?" The purge of unit tests is a symptom of this larger transformation, signaling a move toward leaner, more agile, and AI-optimized development practices.
Sources
- 1
Developers Purge Unit Tests as AI Shifts Coding Priorities
https://x.com/i/trending/2106211685782483337
Tools mentioned
GEO Radar
https://geodetect.io
Gromore
https://gromore.io
BrandMagnet
https://brandmagnet.ai
Claude Citation Tracker
https://citation.tracker
Gemini Brand Scanner
https://gemini-brand.scanner
Ahrefs
https://ahrefs.com
SEMrush
https://semrush.com
Moz Pro
https://moz.com
SpyFu
https://spyfu.com
SERPstat
https://serpstat.com