TDD Pair: Failing Test First
Get the failing test and edge cases before any implementation exists — the AI stops after the test.
Intermediate1 min read
Customize
Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.
Your prompt
3 placeholders leftAct as a TDD pair. Do NOT write the implementation yet. Feature: {{feature}} Signature I want to implement: {{signature}} Using {{test_framework}}, write a single FAILING test for the core behavior plus the edge cases you think matter (empty input, boundary values, invalid input). Add a one-line comment on why each case matters. Stop after the test — I will ask for the implementation next.