Following the previous post this are my thoughts about the tests written by AI.
We’ve all seen how fast AI agents can move now. In a single afternoon, an AI coding assistant can scaffold a new microservice, write the unit tests, generate the end-to-end (E2E) suite, and even spin up performance test scripts.
On paper, the CI/CD pipeline looks greener than ever. Coverage is at 95%. Load tests pass.
Traditionally, enterprise software relied on a core principle of separation of concerns: developers wrote the implementation, and an independent QA or SDET team wrote the tests. That organizational friction was a feature, not a bug. More importantly, those QA teams were stacked with experienced engineers who brought common sense, cross-team communication, domain background, and real-world life experience to the table. They knew how frustrated users actually click through a broken flow, which upstream team forgot to mention an API change, and when a feature technically met the ticket requirements while still making zero practical sense.
Today, that human intuition and independence are eroding. Even when you have separate dev and QA teams, both sides are using AI to generate their outputs. Devs use AI to write the service; QA uses AI to generate the E2E and performance suites from the same Jira tickets or OpenAPI specs.
Instead of experienced humans applying lived context and common logic, we now have probabilistic models operating on statistical guesses derived from general training data—writing the code on one side and testing it on the other.
What AI Misses in the Real World
When an LLM hallucinates an edge case or misses a real-world nuance that isn't obvious in generic training data, both the implementation and the test suite align around the exact same blind spot:
- Impatient Human Behavior: An AI-generated Playwright suite tests logical, sequential checkout steps. A human tester, thinking about a frustrated commuter on spotty train Wi-Fi, rapidly double-taps "Pay Now" and hits the browser's Back button mid-redirect—uncovering a race condition that charges the card twice while displaying an error screen.
- Unspoken "Tribal Knowledge": AI validates against official API docs and Jira specs. A senior QA remembers from a Slack thread six months ago that a legacy third-party partner silently drops webhooks if two retries happen within 500 milliseconds, even though their documentation claims no rate limit exists.
-
"Green Dashboard" Silent Failures: When AI writes both a data-ingestion service and its health-check tests, both can agree that catching an unexpected Unicode character and returning
200 OKto keep the queue moving counts as "passing"—while silently dropping customer data.
In a standard SaaS app, a missed edge case means a bad user experience or a hotfix. In high-stakes industries like medical software or aviation systems, a shared blind spot between AI-written code and AI-written tests isn't just technical debt—it is catastrophic. A probabilistic test suite validating probabilistic flight-control logic or medical dosage calculations creates a dangerous illusion of compliance and safety where deterministic certainty is non-negotiable.
1. How can humans realistically validate all this generated code?
Humans remain the final accountability gate, yet reviewing a 3,000-line PR generated in five minutes leads to instant review fatigue and rubber-stamping.
- Are teams intentionally throttling AI output—enforcing strict PR size limits or deliberately writing less code with AI so humans can actually comprehend every diff?
- Or are you sandboxing AI context during test generation—feeding the AI only the business requirements and API contracts while blocking access to the implementation code, forcing it to test behavior rather than mirror existing logic?
2. How do we replace lost QA intuition, common logic, and lived context?
An AI doesn't know your company's history, your users' habits, or how human communication gaps lead to broken integrations—it only predicts what "likely" test cases look like based on general data.
- How are you preserving exploratory testing and human common sense when leadership expects AI to automate the entire QA lifecycle?
- Where are your senior QA engineers spending their time now—prompting test scripts, or strictly doing unscripted, high-context adversarial testing that an LLM wouldn't know to guess?
3. Is "AI swarm testing" the next evolution—and who owns the source of truth?
One idea would be to test AI with AI: deploying an independent swarm of adversarial AI agents to audit AI-written tests, explore edge cases, and actively try to break the running app.
- Even if an agent swarm validates the app, what acts as the ultimate source of truth?
- Does this force us into writing much deeper, hyper-detailed documentation and formal specifications upfront? And if it does, it triggers the exact same recursive trap: who wrote that documentation? If product owners and architects also use AI to draft the specs, we’re right back to validating AI with AI.
4. How do we restore true "independence" in testing?
When separate dev and QA teams both rely on LLMs, organizational separation no longer guarantees cognitive separation.
- Are your teams deliberately using different models, prompts, or context boundaries between dev and QA to avoid shared blind spots?
- Or are we accepting that human review must shift away from reading code and strictly toward auditing specifications, contracts, and acceptance criteria?
5. How do we prevent "hollow" AI-generated tests?
AI is great at writing tests that pass, which isn't the same as writing tests that catch bugs. We’ve seen cases where AI-generated unit tests mock out the exact failure conditions they were supposed to guard against, or AI-written E2E suites assert on happy-path UI elements while ignoring silent backend errors.
- How are you validating the quality of AI-written tests?
- Are tools like mutation testing or property-based testing making a comeback in your pipelines to prove that AI tests actually fail when they should?
6. Can we trust AI-generated performance and resilience tests?
Generating a k6 or JMeter script with AI is trivial, even for a dedicated performance engineer. But knowing what realistic production bottlenecks look like requires deep architectural context.
- When QA uses AI to generate load tests against a service written by AI, how do you ensure you aren't just benchmarking synthetic happy paths while missing connection pool exhaustion, noisy neighbors, or downstream cascading failures?
7. Where do we draw the line between deterministic and probabilistic checks?
In an enterprise setup, we rely on deterministic gates (SAST, type safety, schema validation, policy-as-code) to keep production safe.
- Where is your organization drawing the hard line on what AI is allowed to verify?
- At what point do we stop adding more AI verification layers and insist on hard, deterministic, human-authored rules at the gate?
Top comments (0)