Kamus AI
Test-first
Writing the test before the code, then watching it fail for the right reason.
Test-first means the requested behaviour is written as a test first. The test is run and must fail with the right message, then code is written until it passes. That failing step proves the test really checks the behaviour. It matters when AI writes code, because the test becomes a measure that cannot be bargained with.
Also called: Test-first, TDD, test-driven development
