Test-Driven Development

The Process

  1. Write the test/spec/feature that describes the desired behavior
    • write against the API you wish you had.
  2. Run the failing test (RED)
  3. Write the code to fix the test
  4. Get the test to succeed (GREEN)
  5. Refactor for better design

TDD In Action:

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License