How to write software tests
Use agents to build your test suite
AI coding agents are remarkably good at writing tests, but they need guardrails. I always instruct my agents in AGENTS.md to never modify a test to make it pass. They must always modify the implementation to satisfy the test. By enforcing this norm, you ensure the agent builds a robust safety net rather than a suite of "cheating" tests.