Engineers can't tell whether AI-written tests check the right thing when the same AI also wrote the code.
Engineers whose tests were written by AI
Where it stands
- Sourced (done)
- Kit (done)
- Wanted (next)
- Building
- Solved
How this problem came to be
- Found1 sourcenews.ycombinator.com
- Quoted3 claimseach checked against its page
- BriefWrittenand what solved looks like
- Market2 signals630 points on Hacker News
- Kit5 steps20 tools · 6 routes
- People0 want0 live it · 0 would test
The problem, broken down
- Who it hurts
- Engineers who rely on tests written by the same AI that wrote the code
- The moment
- Code and tests agree with each other, so a shared mistake passes unnoticed.
- What people do today
- Some people check that tests fail before the fix, introduce deliberate bugs to see if tests catch them, use fuzzing and mutation testing, or have the AI review its own work with other agents.
- Why it's unsolved
- The source does not explain why this check is still unsolved; commenters describe manual methods that take effort.
- What solved looks like
- A check shows, for a given change, whether its tests would catch a planted bug in the code they cover.
Evidence lens
Every claim points at the quote it rests onSources
Claims
Builders still need to know
Drafted with claude-haiku-5-5 from the cited source and published automatically. Every quote was checked against the source.
Sources
From a public page with a citation.
What the source says, in short
Code and tests agree with each other, so a shared mistake passes unnoticed. Some people check that tests fail before the fix, introduce deliberate bugs to see if tests catch them, use fuzzing and mutation testing, or have the AI review its own work with other agents. The source does not explain why this check is still unsolved; commenters describe manual methods that take effort.
Forks 0
Nobody has forked this yet. Be the first.
Market read
How big this is, from the evidence
- Stack Overflow Developer Survey ↗Our estimate · Low confidenceAbout 18% of surveyed developers use mostly AI for testing code“Testing code 17.9%”
- Hacker News ↗Builders' pull · Medium confidence630 points on Hacker News
How these were measured: In Stack Overflow's 2025 survey, the 'Currently Mostly AI' chart shows 17.9% for testing code, from 25,349 responses to that question. This is the upper bound of who could hit this, since it doesn't show how many also had the same AI write the code. Points on the Hacker News thread, read from its API.
For whoever takes this up
The builder's path for this problem
A path written for this problem: its open questions, who to talk to, its data and its ideas, with tools for each stage and a starter prompt ready to paste into any assistant.
Open the pathDiscussion 0
No comments yet.