TDD (Test Driven Development)
You first create the test, than you create the domain objects and use cases.
Don't need to start by unit tests.
Usually unit test involve maturity, requires that you have the units.
3 TDD Laws
You cannot write any line of code before haven written a test that detects a possible failure.
You must write the fail scenario, and not more than what it needs to detect a failure.
You must not write more code than the enough to pass the tests.
Last updated