Test Driven Development is something I have heard a lot about in the last year or two but I hadn’t had an opportunity to try it for myself until I started the LevelUp program that ThoughtWorks runs to help students who are close to graduating build skills that they will need as they venture into the workplace.
So what is TDD about? It’s a different programming paradigm to the one I’m used to and the one I’ve been taught at uni. TDD is about writing your tests first, running them to see that they are failing, and then writing the code to ensure the tests will pass. It is about deliberately and incrementally adding small pieces of functionality, all the while making sure that it is comprehensively tested as it is written rather than as an afterthought.