|
Answer» TDD approach is primarily a specification technique. It ensures that your source code is thoroughly tested at confirmatory level.
- With traditional testing, a successful test finds one or more defects. It is same with TDD. When a test fails, you have made progress because you know that you NEED to resolve the problem.
- TDD ensures that your system actually meets requirements defined for it. It helps to build your confidence about your system.
- In TDD more focus is on production code that verifies whether testing will work properly. In traditional testing, more focus is on test case design. Whether the test will show proper/improper execution of the application in ORDER to fulfill requirements.
- In TDD, you achieve 100% coverage test. Every SINGLE line of code is tested unlike traditional testing.
- The combination of both traditional testing and TDD LEADS to the IMPORTANCE of testing the system rather than perfection of the system.
- In Agile Modeling (AM), you should "test with purpose". You should know why you are testing something and what level its need to be tested.
TDD approach is primarily a specification technique. It ensures that your source code is thoroughly tested at confirmatory level.
|