Test Driven Development
A very popular approach, called Test Driven Development (TDD), recommends first focusing on the tests before the implementation. With TDD, you start by writing tests, which effectively become the system's specifications. Only then can you start developing the code that implements those specifications.
The idea is that your tests will fail until you properly implement the necessary code to make them pass. Writing the tests first is beneficial because it forces you to think early enough and more precisely about the functional requirements and the APIs.
By applying the TDD approach and assuming that your specifications are correct, you can improve the quality and reliability of your applications.
You have to think about ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access