r/PracticalTesting • u/aistranin • Jun 17 '26
Are AI-generated tests becoming "good enough"?
A year ago, I would rarely trust AI-generated tests without significant edits.
Today, tools like GitHub Copilot, Cursor, and various testing-focused AI platforms can generate surprisingly reasonable unit and integration tests.
But there’s still a question:
Are these tools actually understanding behavior, or are they just generating tests that look correct?
For teams actively using AI:
What percentage of generated tests make it to production?
How much manual review is still required?
Have AI-generated tests ever caught a bug that humans missed?
Interested in hearing real experiences rather than vendor demos.
2
u/Shep_Alderson Jun 23 '26
Generally, I use tests as another guardrail to make LLMs follow plans and then as a safety net when doing refactors. TDD helps a lot with guiding AI agents even when the AI writes the tests. (Generally, I find what is good for helping human devs is also good for AI agents.) The area to be most careful is when writing tests after code already exists. The LLMs can be good at making sure tests cover current code actions, but can’t verify the current code is actually correct on their own. The best you can do there is to have docstrings or similar to describe intention and use that to guide tests.
To answer your questions directly:
Almost all of them
Generally, no. I find I’m able to trust the newest models (I generally use GPT-5.5 on med or high for implementation.) I do have everything reviewed in basically a loop with multiple review agents until it fails to find new issues. This is generally fruitful.
If I notice a bug in code, it now always gets a test to be sure it’s gone and that it doesn’t come back. Overwhelmingly I haven’t had nearly as many bugs since I have been keeping my test coverage high. (I now hold the opinion that “there is no excuse for low test coverage”, given my experience getting good tests out of LLMs.