Unit testing can be one of the most effective ways for a software developer to increase the quality of their code. Test driven development is a coding practice that helps ensure developers are writing good unit tests but also helps with design and makes coding faster in general. In the video below I go over these benefits and others.
I’ve posted a youtube video of a real Test Driven Development coding session of the FizzBuzz code kata using C++. This is a pretty simple code kata and serves as a gentle introduction to the process of TDD. I used the Eclipse CDT with Google Test as the unit testing library. Please let me know if you’d like to see more videos like this (other katas or other programming languages). Thanks!