Tdd Cycle

Follow the Test-Driven Development loop for: $ARGUMENTS

GodHaveMRSA updated 1y ago
Claude CodeGeneric
View source ↗
Follow the **Test-Driven Development** loop for: **$ARGUMENTS**

Workflow
1. **Author failing tests only**  
   • Write unit/integration tests that capture expected behaviour.  
   • Ensure they fail against current code.

2. **Commit the tests**  
   • `git add -A && git commit -m "test($ARGUMENTS): add failing tests"`  

3. **Code until tests pass**  
   • Implement functionality without editing the tests.  
   • Iterate: run tests ➜ adjust code ➜ repeat until green.  
   • Consider sub-agents to check overfitting or edge cases.

4. **Final commit & PR**  
   • `git commit -am "feat($ARGUMENTS): implementation passing tests"`  
   • `gh pr create --fill`

Maintain Tdd Cycle?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Tdd Cycle on getagentictools](https://getagentictools.com/loops/godhavemrsa-tdd-cycle?ref=badge)
npx agentictools info loops/godhavemrsa-tdd-cycle

The second line is the CLI lookup for this page — handy in READMEs and docs.