Tuesday, July 28, 2015

TDD with Uncle Bob

 

Recently I was start to looking into TDD approach in software development. It’s a pretty cool process to follow and make sure you didn’t break any business rule while you do development of the application. I believe TDD must be a one of most essential component in the development. Because if you can write more of unit test it solve the issue of defects related business logic. More of your unit test get corrected it give a help to improve your integration testing too. Finally amount of time needs to spend for manual testing and regression testing can reduce in this way. So I found the three rules of TDD from uncle Bob blog. I'm going to mention those rules in below,

  1. You are not allowed to write any production code unless it is to make a failing unit test pass.
  2. You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures.
  3. You are not allowed to write any more production code than is sufficient to pass the one failing unit test.

These 3 rules clearly explain what is TDD and why we need to use it. So whenever you follow TDD approach try to keep in these 3 rules in mind. Im going to put the link of the uncle Bob video here to watch you. His explain the TDD as more simpler way to get understand anyone. So watch following link and get to know about the TDD. I’ll write another article about unit testing with NUnit.

Watch this video : Red Green Refactor by Uncle Bob