tdd
SKILL.md
Test-Driven Development
Description
TDD methodology for development phase. Focus on testing what you build.
Details
Core principle: Write tests for the code you write.
Follow Red/Green/Verify cycle:
1. Red: Write a failing test first
- Write the test code that calls the new function
- Add function declaration to header file
- Add stub implementation that compiles but does nothing (e.g.,
return OK(NULL);) - A compilation error is NOT a failing test - you need a stub that compiles and runs
- Verify the test actually fails with assertion failures