Skip to lesson
Exit
AI-assisted review, testing & anti-patterns1 / 3

1 min lesson

Test generation discipline: assert intent, not implementation

Pick two rows from the table in "Test generation discipline: assert intent, not implementation" and explain the choice each one supports.

Step 1 of 3

AI is fantastic at generating tests and terrible at knowing what's worth testing. The discipline is the whole game. A generated test that mirrors the implementation is no safety net. It's a tripwire that fires only when you change the code, never when the code is wrong.