What is the Rule of a “Test Driven Development”?

In Test Driven Development, test cases are prepared before writing the actual code. It means you have to write the test case before the real development of the application.

Test Driven Development follows:

  • Write the test cases
  • Execute the test cases
  • If the test case fails, then changes are made to make it correct
  • Repeat the process