Test-Driven Development

This lesson explains a software development methodology that focuses on unit testing.

Test-driven development #

Test-driven development (TDD) is a software development methodology that prescribes writing unit tests before implementing functionality. In TDD, the focus is on unit testing. Coding is a secondary activity that makes the tests pass.
In accordance with TDD, the ordinal() function below can first be implemented intentionally incorrectly:

Get hands-on with 1200+ tech skills courses.