Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Test-Driven Development in C++

via LinkedIn Learning

Overview

Discover how to develop strong, tested C++ code with unit testing and test-driven development.

Syllabus

Introduction
  • Welcome
1. Overview of Test-Driven Development
  • What is unit testing?
  • What is test-driven development?
  • Example: TDD session, the FizzBuzz kata
2. Setting Up Your Development Environment
  • Set up Google Test with Eclipse
  • Set up Google Test with Visual Studio
  • Set up Google Test with CLion
  • Set up Google Test with Xcode
3. Google Test Overview
  • Google Test
4. The Supermarket Checkout Kata
  • Overview, setup, and the first test case
  • Add items, add item prices, and calculate the current total
  • Add multiple items and calculate the total
  • Add and apply discounts
  • Throw an exception when adding an item with no price
5. Test Doubles
  • Test doubles overview
  • Google Mock overview
  • Google Mock example
6. Test-Drive Development Best Practices
  • Test-driven development best practices
Conclusion
  • Next steps

Taught by

Richard Wells

Reviews

4.5 rating at LinkedIn Learning based on 154 ratings

Start your review of Test-Driven Development in C++

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.