Test-Driven Development with C++
Packt Publishing Limited (Verlag)
978-1-80324-200-2 (ISBN)
Key Features
Learn how a simple shift in focus will let you use tests to meet customer needs
Develop a testing library and a logging library that you can use in your own projects
Drive better code designs with effective tests that help new team members contribute faster
Book DescriptionModern, standard C++ is all that is needed to create a small and practical testing framework that will improve the design of any project. This allows you to think about how the code will be used, which is the first step in designing intuitive interfaces. TDD is a modern balanced software development approach that helps to create maintainable applications, provide modularity in design, and write minimal code that drastically reduces defects. With the help of this book, you'll be able to continue adding value when designs need to change by ensuring that the changes don't break existing tests.
In this book, you will use test-driven development (TDD) to gain practical skills by writing a simple testing framework and then using it to drive the design of a logging library. The book will help you enhance your software development skills with test cases. You'll understand how to design and implement test cases. The chapters will also show you how to utilize the TDD approach to be more productive in software development than attempting to code in large unstructured steps.
By the end of this book, you'll have gained knowledge of TDD and testing and also built a working logging library with unique features not found in other libraries.
What you will learn
Understand how to develop software using TDD
Keep the code for the system as error-free as possible
Refactor and redesign code confidently
Communicate the requirements and behaviors of the code with your team
Understand the differences between unit tests and integration tests
Use TDD to create a minimal viable testing framework
Who this book is forThis 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.
Abdul Wahid Tanner is the founder and an instructor at Take Up Code which teaches programmers the joys of coding through live classes, podcasts, books and more. He has authored two self-published titles, "How To Code C++ From A Simple Idea To A Game You'll Understand!" and "The C++ Game Starter Template System". He was previously working as a software engineer at Bloomberg LP, and a Principal Software Engineer at Citrix. With over four decades of experience in the tech world, he has worked with established companies such as Dell and Microsoft in the past, and has been a speaker at CppCon. He currently resides in Texas, USA.
Table of Contents
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
| Erscheinungsdatum | 21.11.2022 |
|---|---|
| Verlagsort | Birmingham |
| Sprache | englisch |
| Maße | 75 x 93 mm |
| Themenwelt | Mathematik / Informatik ► Informatik ► Programmiersprachen / -werkzeuge |
| ISBN-10 | 1-80324-200-0 / 1803242000 |
| ISBN-13 | 978-1-80324-200-2 / 9781803242002 |
| Zustand | Neuware |
| Informationen gemäß Produktsicherheitsverordnung (GPSR) | |
| Haben Sie eine Frage zum Produkt? |
aus dem Bereich