- What is test-driven development (TDD)?
- Setting up your development environment
- Setting up Google Test with Eclipse, Visual Studio, CLion, and Xcode
- Working with Google Test
- Test doubles
- Google Mock library
- TDD best practices
Skill Level Beginner
- [Instructor] Hi, welcome to this course on Beginning Test Driven Development in C++. My name is Rich Wells and I'm a software engineer with over 20 years of experience in software development, much of that using C++. I'm passionate about writing quality software and test-driven development is a key discipline every software developer should practice to ensure the quality of their code. I'm excited to show you how to use this discipline in your everyday coding process to help ensure the quality of your code base.
In this course, we'll go over what is unit testing and test-driven development and how will they help you? What is Google Test and how is it used with test-driven development? How to set up some common C++ development environments to use Google Test. What are some best practices for unit testing and test-driven development? And lastly, I'll walk through some hands-on coding sessions practicing test-driven development in C++. To follow along with this course, you should have a basic knowledge of C++.
The examples in this course are fairly simple but some C++ knowledge is necessary. You should have a Windows, Linux, or Mac PC, as these operating systems support all the tools necessary for compiling and executing C++ programs with Google Test. Most of the examples in this course are performed using the Eclipse CDT IDE with the GNU C++ Compiler which is available for Windows, Linux, and Mac. I also provide examples of how to set up Google Test with the Clion IDE which is also available for Windows, Linux, and Mac, and with Visual Studio in Windows, and the Xcode IDE on Mac.
So let's get started learning test-driven development for your C++ projects today.