Test Driven Development (TDD)

Last month, I attended a training about Test Driven Development (TDD). At the beginning, I really was not not sure if I should go for such training or not. However, I found that it really worths for me. In this post, I will briefly describe what Test Driven Development is.

Test Driven Development or TDD is simply writing the test or test cases first before writing the code. After the test is written, programmer writes the code that makes the test passes. Then more and more test cases are written and the code is modified to make those test cases pass. During that process, the code is always re-factored and enhanced for better quality.

Although I already worked as a developer and also have experience as a tester, really TDD was something different to me and I was not used to it at the beginning. However and as the course proceeded with exercises, other attendees and I started to get the idea. That exactly what suppose to happen in any software development organization planning to implement TDD. Software programmers need sometime to get used to TDD and to do it in the most efficient way. The result will be better code quality and I am sure it is what all software development organizations are striving for.

Finally, you may refer to the a quote I posted in my blog previously about TDD. Hope it helps you understand TDD better. Please click here to view that quote.

All the best…

 

email

4 Comments

Brandi Good

about 5 years ago

I've been trying to implement this in my current project - one of the developers joined after the design was finalized and it seemed to be easier to show him exactly what I wanted with test cases rather than "catching him up" on the entire project.

Reply

Anwar Bosbool

about 5 years ago

Great Brandi. Thanks a lot for sharing your experience. Wish you all the best and hope to keep in touch and share more knowledge and experience.

Reply

Tony Bruce

about 4 years ago

I'm just wondering if it's me or not but from the post and from Brandi's post it seems like there maybe a mixing of TDD and ATDD here?

Reply

Anwar Bosbool

about 4 years ago

Thanks Tony. Actually, there is no mixing between TDD and ATDD. TDD helps us to write better code. However, ATDD is more towards acceptance criteria based on customer requirements. You may search the internet for the differences between TDD and ATDD. Several resources are there that show the differences.

Reply

Leave a Comment

Please be polite. We appreciate that.
Your email address will not be published and required fields are marked