The six rules of TDD (Test Driven Development)

The six rules of TDD

Flowchart

1. Write a test for a desired feature.
2. Run that test and watch how it fails!
3. Implement the feature (Just the structure, not logic yet).
4. Run the test, and watch how it fails again!
5. Implement the logic, syntax, etc.
6. Finally, watch the test PASS!

Leave a Comment

Your email address will not be published. Required fields are marked *