Post

I spend very little time reviewing AI-generated code. Instead, I focus on reviewing the tests to make sure they are correct and complete. Most agents put together lousy tests without explicit feedback and instructions. Trust the tests, not the code.

Reviewing the tests works only when the tests can fail. The recurring pattern in agent-written tests is asserting on the output the code already produces, so the suite passes by construction. The check: change the expected value and confirm the test goes red.

0 reposts0 likes

No replies yet.