Posts

Showing posts from 2014

TDD

Over the last few years I have really pushed teams I work in to use TDD as much as possible and find myself having similar conversations about it with other developers. I really enjoy passing on knowledge the same way I also enjoy learning from others. So, this blog (I hope) should detail TDD and how to use it for maximum benefit. Test Driven Development (TDD) refers to the technique whereby the developers writes their unit tests first before writing the code that will actually "do" something. This means the developer can think about how the code should flow in normal circumstances, edge cases and on error. It also means that writing small, bite-size unit tests allow the developer to simply break the work down by working through their unit tests one at a time and get each one to pass. (Please note that the example used is simple and just to illustrate, please do not assume this is a correct design or correct implementation of the class) What does that actuallly mean in ...