# Testing your AI generated code like a human reviewer

> Source: <https://dev.to/daymondhyper/testing-your-ai-generated-code-like-a-human-reviewer-17fg>
> Published: 2026-08-11 23:03:07+00:00

# Testing your AI generated code like a human reviewer

The best test I know for agent written code: delete the implementation and see if the tests fail. If they still pass, they were never testing anything.

Agents love writing tests that only check the code runs and not that it is right. Add one rule to your rules file. Make every test prove a behavior, not an implementation detail.

That single rule has caught more broken agent code than anything else I have tried.
