InterviewSolution
| 1. |
What Is Test Driven Development (tdd)? |
|
Answer» Test-Driven Development starts with designing and developing tests for every small functionality of an application. In TDD approach, first the test is developed which specifies and validates what the code will do. In normal Testing process, we first generate the code and then test [To know more about software testing refer Software Testing help]. Tests might fail since tests are developed even before the development. In order to PASS the test, the development team has to develop and refactors the code. Refactoring a code means changing some code without affecting its BEHAVIOR. Test Driven Development (TDD): Learn with Example The simple concept of TDD is to write and correct the failed tests before writing new code (before development). This HELPS to AVOID duplication of code as we write a small amount of code at a TIME in order to pass tests. (Tests are nothing but requirement conditions that we need to test to fulfill them). TDD cycle defines:
Test-Driven Development starts with designing and developing tests for every small functionality of an application. In TDD approach, first the test is developed which specifies and validates what the code will do. In normal Testing process, we first generate the code and then test [To know more about software testing refer Software Testing help]. Tests might fail since tests are developed even before the development. In order to pass the test, the development team has to develop and refactors the code. Refactoring a code means changing some code without affecting its behavior. Test Driven Development (TDD): Learn with Example The simple concept of TDD is to write and correct the failed tests before writing new code (before development). This helps to avoid duplication of code as we write a small amount of code at a time in order to pass tests. (Tests are nothing but requirement conditions that we need to test to fulfill them). TDD cycle defines: |
|