Book

Test-Driven Development with C++

This book focuses on teaching you how to use tests to improve the design of future projects. Using TDD will help you design code that is easy to understand, runs without crashing, does what it’s supposed to do with fewer bugs, and can be changed as needed. Implementing this method using this book will make your code seem more intuitive because you’ll learn how to write it first from a user’s viewpoint.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

14h20m

Language

English

About Book

Who Is This Book For?

This book is for C++ developers already familiar with and using C++ for daily tasks who want to improve their skillset. You don’t need to be an expert but you should already have some knowledge of modern C++ and how to use templates to get the most out of this book.

Book content

chapters 14h20m total length

Desired Test Declaration

Test Results

The TDD process

Adding Tests to a Project

Adding More Confirm Types

Explore Improvements Early

Test Setup and Teardown

What Makes a Good Test?

Using Tests

The TDD Process In Depth

Managing Dependencies

Creating Better Test Confirmations

How to Test Floating-Point and Custom Values

How to Test Services

How to Test With Multiple Threads

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required