Get Free Shipping on orders over $79
Test-Driven Development with C : A simple guide to writing bug-free Agile code - Abdul Wahid Tanner

Test-Driven Development with C

A simple guide to writing bug-free Agile code

By: Abdul Wahid Tanner

eText | 18 November 2022 | Edition Number 1

At a Glance

eText


$54.99

or 4 interest-free payments of $13.75 with

 or 

Instant online reading in your Booktopia eTextbook Library *

Why choose an eTextbook?

Instant Access *

Purchase and read your book immediately

Read Aloud

Listen and follow along as Bookshelf reads to you

Study Tools

Built-in study tools like highlights and more

* eTextbooks are not downloadable to your eReader or an app and can be accessed via web browsers only. You must be connected to the internet and have no technical issues with your device or browser that could prevent the eTextbook from operating.

A practical guide to writing a simple testing framework and extending it to drive the design of your logging library

Key Features

  • Learn to solve challenges of testing in C++ with a minimal solution
  • Develop a logging library with enhancements.
  • Drive code designs using tests

Book Description

Modern, standard C++ is all that is needed to create a small and practical testing framework that will improve the design of any other project. This allows a developer to first think about how to code will be used which is the first step in designing intuitive interfaces. And it continues adding value when designs need to change by ensuring that the changes don't break existing tests.

In this book, developers working with Test Driven Development (TDD) will be able to put their knowledge to work with this practical guide to writing a simple testing framework and then using it to drive the design of a logging library. The book provides a hands-on approach to implementation and associated methodologies that will have you up-and-running, and productive in no time.

By the end of this book, the reader would know what TDD and testing in general is and as a bonus, would have a working logging library.

What you will learn

  • How to develop using TDD
  • Keeping the code for the system as error-free as possible
  • Refactor and redesign the code with high confidence
  • Communicate to the team what the requirements and the behaviors of the code are
  • Understand the differences between unit tests and integration tests
  • Use TDD to create a minimal viable testing framework

Who This Book Is For

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

Table of Contents

  1. Desired test declaration
  2. What should test results look like?
  3. The TDD process
  4. Adding tests to a project
  5. Adding More Confirm Types
  6. Explore Improvements Early
  7. Test setup and teardown
  8. What makes a good test?
  9. Using tests to drive code design of a logging library
  10. The TDD Process In Depth
  11. How to manage dependencies
  12. Creating better test assertions
  13. How to test floating point values
  14. Mocking dependencies
  15. Testing across multiple threads
on
Desktop
Tablet
Mobile

More in Programming & Scripting Languages

Investing for Programmers - Stefan Papp

eBOOK

The Debugging Handbook - Johannes Kuhlmann

eBOOK

RRP $67.77

$54.99

19%
OFF