1.

Explain TDD(Test Driven Development) in ASP.NET MVC.

Answer»

TDD or Test DRIVEN DEVELOPMENT is an approach where a test will be written before the completion of production code writing for the purpose of refactoring and fulfilling the test. TDD is also known as the Red-Green-Refactor method of development.

The Workflow of TDD is given below:

  • Requirement identification
  • Write a test case for automation
  • Tests will be executed and you need to MAKE sure that the newer tests fail(red colour)
  • Write the complete production code
  • All tests have to be executed and passed.
  • Refactoring will be performed
  • The process should be repeated.


Discussion

No Comment Found