Test-Driven Development (TDD)
Installation
SKILL.md
- Write all the failing tests (RED phase) You need to write all the tests needed for your current task up-front, only then can you proceed. This must include edge cases and pathological as well as the happy-path cases.
- Verify the tests fail due to the behavior of the application, and NOT due to the test. If you have more than one test that you need to write, you should write all of them before moving to the GREEN phase.
- Write the minimal amount of code necessary to make the test pass (GREEN phase)
- Verify the test now passes due to the behavior of the application.
- Refactor the code to clean it up.
- Verify tests still pass.