Why Testing Needs to Be Built Into the AI Assembly Line From the Start

I’ve been building testing tools for more than twenty years, and for most of that time my conversations with engineering teams sounded fairly similar.Testers felt like second-class citizens in the software lifecycle.
Testing happened late, often squeezed into whatever time was left before a release, and injected into a CI pipeline that was built for something else.AI has now transformed how we write code – and the impact on testing is definitely there – for better and worse.
In a lot of ways, AI has made the challenge more visible.
Over the past few months, I’ve been at a handful of testing and cloud-native conferences (LeadDev, CloudX, StarWest), and nearly every team I spoke with is working on some version of the same project: an AI-driven software delivery lifecycle, where agents take work from a spec to something running in production with the right amount of human involvement along the way.
I picture it as an assembly line.Agents write the code, other agents review it, and pipelines build and deploy it.Humans keep an eye on things.What I hear much less about is where testing sits on that line.
Right now, it’s a bit of a Wild West. New agent capabilities come out every few weeks, the large AI labs keep releasing new models, and teams and vendors alike are throwing things at the wall to see what sticks.
Some of the data suggests that gaps are already showing.Google’s most recent DORA report on AI-assisted software development, which surveyed nearly 5,000 technology professionals, found that AI adoption is linked to higher delivery throughput, which is good news.
It’s also still linked to lower delivery stability.The researchers’ explanation is that AI speeds up development and exposes weaknesses further downstream, and they point to strong automated testing as one of the controls that stop more change from turning into more instability.
I don’t find that surprising. If you push a lot more code through a process that was designed for much less of it, it slows down somewhere, or it breaks somewhere.
When people imagine what goes wrong with AI-generated code, they tend to picture an agent pushing something terrible into production. I’m sure that happens – and when it does, the consequences aren’t great: bugs, unhappy customers, maybe a security incident. But TBH, it isn’t what I run into most of the time.
The 2026 Stack Overflow Developer Survey shows where AI use is concentrated today. Developers mostly use it to generate code in areas they already know (67%) and to debug (61%), while only 20% use it to deploy, operate or troubleshoot production systems. So far, AI has mostly sped up writing code. Getting that code verified and into production still works largely the way it did before.
This lines up with what I’m seeing, too: teams producing a lot more code without releasing any faster.An individual developer or team might feel like they’re building twice as many features, but those features get stuck downstream, waiting for review, waiting for tests, waiting for an environment to test them in.
All that extra code clogs the pipeline, and in many cases it even slows down teams’ overall delivery.
While the concern about AI-induced delivery bottlenecks is very tangible, it isn’t the only thing teams ask us about.Developers mostly want to know how to write better code faster.The questions about guardrails come from engineering managers and the people setting up these agent-driven workflows.
How do we make sure the agents don’t go rogue?How do we know they aren’t introducing regressions, or quietly skipping work they were supposed to do?How do we make sure the tests they write actually (and truthfully!) validate what they’re supposed to?
I think that’s because they’re looking at different things. A developer looks at one pull request at a time. An engineering manager is responsible for everything that gets released across many agents and many people, and is the one who has to explain it when something breaks in production.
And they have reason to be careful.Researchers built a benchmark called ImpossibleBench using coding tasks where the unit tests contradict the specification, so the only way to pass is to cheat.Leading models often did exactly that, for example by editing or deleting the failing tests instead of fixing the code (!!).
A separate study of agent-authored pull requests found gaps in how well agents test their own changes, and it cites earlier research showing that nearly a third of merged agent pull requests needed follow-up fixes or refactoring.
My takeaway is that guardrails can’t live only inside the agent’s own environment, and they can’t only come after code ships.If the agent that wrote the code also decides whether it passed, the result doesn’t tell you much.
That doesn’t mean agents shouldn’t write tests.It means the verdict has to come from somewhere the agent can’t adjust.Testing needs to be its own station on the line, one that every change goes through, whether a pers