Sign in

TDD technique enforces developers to build the code upon tests.Thereby, only test scenarios are written.So, if we follow TDD technique, we will not write any single line of code which is not testable.

Testable code means we have a code for which we can write tests easily. Tests are vital indeed but we don’t have to apply TDD for every time.That means sometimes we need to write code and add tests afterwards.Not matter when, we should know if our code is testable or not.

Actually, the rule is simple : a well OOP design provides a well testable code.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store