ylliu / Test-Driven-Development-with-CPP

Test Driven Development with C++ by Packt Publishing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test Driven Development with C++

Test Driven Development with C++

This is the code repository for Test Driven Development with C++, published by Packt.

A simple guide to writing bug-free Agile code

What is this book about?

Modern, 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 would help create maintainable applications, provide modularity in design and write minimal code that would drastically reduce 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.

This book covers the following exciting features:

  • 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

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

TEST("Test bool confirms")
{
    bool result = isNegative(0);
    CONFIRM_FALSE(result);
    result = isNegative(-1);
    CONFIRM_TRUE(result);
}

Following is what you need for this book: 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.

With the following software and hardware list you can run all code files present in the book (Chapter 1-15).

Software and Hardware List

Chapter Software required OS required
1-15 Any C++ compiler, minimally C++20 Windows, Mac OS X, and Linux (Any)

Related products

Get to Know the Author

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.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781803242002

About

Test Driven Development with C++ by Packt Publishing

License:MIT License


Languages

Language:C++ 100.0%