A Practical Tip: Use AI Agents to Codify Desired Behaviors into Tests
Key Info
A developer suggests adding a final phase where you explicitly discuss with an AI coding agent which behaviors should be codified into tests, turning implicit expectations into automated checks.
Highlights
- Instead of letting agents rewrite tests on the fly, dedicate a final session to specifying desired behaviors.
- This approach complements agent-driven bug fixing, where agents can enumerate potential causes faster than humans.
- It addresses the common issue of agents constantly changing tests by making test expectations explicit.