2.4. Improved approach as compared to V Model¶
2.5. TDD (Test Driven Development)¶
For TDD, we write tests before the development stage. That way, tests are implemented before / during actual development.
This can lead to faster product development cycle. As seen in Waterfall Model, the tests were implemented at a much later stage and it was a delaying things.
In theory, this is how such a process happens:
Write & Implement New Tests
Mostly, everything must fail. (Since no implementation is present)
Add new implementation.
Make new tests pass. And ensure old tests do not fail. And thus, we keep adding new features without breaking old features.