Test Driven Development is a key discipline every software developer should practice to ensure the quality of their code. In this course I'll show you how to use this discipline in your everyday coding practices to help ensure the quality of your code base.
In this course we’ll be going over:
What is Unit Testing and Test Driven Development and how does it help you.
What is the Google Test testing library and how is it used for writing unit tests in C++.
How to setup some common C++ development environments to use Google Test.
What are some Best Practices for unit testing and Test Driven Development.
We’ll also walk through some hands on example programming sessions using TDD in C++.
In this lecture we'll go over what unit testing is and why it's so important to the software development process.
In this lecture we'll go over what Test Driven Development is, a little bit of it's history, it's benefits, and it's work flow.
In this lecture I'll show you a short example Test Driven Development coding session using Google Test and implementing the Fizz Buzz Code Kata.
In this lecture I'll be going over downloading and building google test for Posix platforms and then integrating it in Eclipse.
In this lecture I'll go over the Google Test C++ Unit Testing framework.
In this lecture I'll go over the Supermarket Checkout Kata which will be the focus of this section. Then I setup a new Eclipse project using google test and implement the first test case.
In this lecture I'll implement the 2nd, 3rd, and 4th test cases for the supermarket checkout kata. Adding item prices, adding items, and calculating the total.
In this lecture I implement the next test case for the supermarket checkout kata where I add multiple items to the checkout list and validate I have the correct total
In this lecture I add discount rules and applying discounts when calculating the total.
In this lecture I implement the last test case of the supermarket checkout kata. Generating an exception if an item is added which doesn't have a price defined.
In this lecture I go over what test doubles are and how they help you test your production code in isolation.
In this lecture I'll be going over how the Google Mock library works.
In this lecture I'll work through a hands on TDD coding session with Google Test and Google Mock.
This quiz will ask questions related to the Test Doubles overview.
In this lecture I'll go over some unit testing and TDD best practices that I've found essential to getting the full benefit of practicing TDD.
In this lecture I wrap up the course by reviewing what we went over in the course and what the next steps are in the path of learning unit testing and Test Driven Development.