Test-Driven Development in C++

Test-Driven Development in C++

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 2h 20m | 400 MB

Every software developer wants to ship high-quality applications. Test-driven development (TDD) is a key discipline that can help you enhance your development process—and, in turn, your code base—by ensuring that crashes and bugs are addressed early on. In this course, join Richard Wells as he covers unit testing and TDD for C++ projects. Richard provides an overview of both unit testing and TDD, explaining why both are crucial for developers. He also shows how to set up your development environment for TDD and goes over the Google Test C++ unit-testing framework. Throughout the course, he shares best practices and provides examples and test cases that can help you gain a practical understanding of TTD in C++.

Topics include:

  • 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
Table of Contents

Introduction
1 Welcome

Overview of Test-Driven Development
2 What is unit testing
3 What is test-driven development
4 Example – TDD session the FizzBuzz kata

Setting Up Your Development Environment
5 Set up Google Test with Eclipse
6 Set up Google Test with Visual Studio
7 Set up Google Test with CLion
8 Set up Google Test with Xcode

Google Test Overview
9 Google Test

The Supermarket Checkout Kata
10 Overview setup and the first test case
11 Add items add item prices and calculate the current total
12 Add multiple items and calculate the total
13 Add and apply discounts
14 Throw an exception when adding an item with no price

Test Doubles
15 Test doubles overview
16 Google Mock overview
17 Google Mock example

Test-Drive Development Best Practices
18 Test-driven development best practices

Conclusion
19 Next steps