small medium large xlarge

Test Driven Development for Embedded C

by

Cover image for Test Driven Development for Embedded C
Pages 352
Published
Release P3.0 (2014-09-09)
ISBN 978-1-93435-662-3

Still chasing bugs and watching your code deteriorate? Think TDD is only for desktop or web apps? It’s not: TDD is for you, the embedded C programmer. TDD helps you prevent defects and build software with a long useful life. This is the first book to teach the hows and whys of TDD for C programmers.

Choose Your Format(s)
  • $44.95 In Stock

    Save $15.00 on the combo pack.

  • $34.95 In Stock
  • $25.00 In Stock
  • Ebooks are DRM free.

  • Ebook delivery options.


About This Book

TDD is a modern programming practice that all C developers need to know. It’s a different way to program—unit tests are written in a tight feedback loop with the production code. You get valuable feedback every few minutes. You find mistakes before they become bugs. You get early warning of design problems. You get immediate notification of side-effect defects. You get to spend more time adding valuable features to your product.

James is one of the few experts in applying TDD to embedded C. With his years of training, coaching, and practicing TDD in C, C++, Java, and C# he will lead you from being a novice in TDD to using the techniques that few have mastered.

This book is full of code written for embedded C programmers. You don’t just see the end product, you see how code and tests evolve. James leads you through the thought process and decisions made each step of the way. You’ll learn techniques for test-driving code right next to the hardware, and you’ll learn design principles and how to apply them to C to keep your code clean and flexible.

To run the examples in this book, you will need a C/C++ development environment on your machine, and the GNU GCC tool chain or Microsoft Visual Studio for C++.

Read the reviews .

You Might Also Like

  • Cover Image For The Definitive ANTLR Reference…
  • Cover Image For The RSpec Book…
  • Cover Image For SQL Antipatterns…

Forums

Each of our books has its own dedicated discussion area, where readers help each other out. Many authors also choose to drop by.

Join in…

Here are some recent topics:

Contents & Extracts

Full Table of Contents

  • Test Driven Development
  • Getting Started
    • Test Driving Tools and Conventions
    • Starting a C Module
    • Testing Your Way to Done
    • Embedded TDD Strategy excerpt
    • Yeah but…
  • Testing Modules with Collaborators
    • Introducing Test Doubles
    • Spying on the Production Code excerpt
    • Runtime-Bound Test Doubles
    • The Mock Object
  • Design and Continuous Improvement
    • SOLID, Flexible, and Testable Designs
    • Refactoring
    • Adding Tests to Legacy Code
    • Test Patterns and Antipatterns
    • Closing Thoughts
  • Appendixes
    • Development System Test Environment
    • Unity Quick Reference
    • CppUTest Quick Reference
    • LedDriver After Getting Started
    • Example OS Isolation Layer

Brought to You By

James Grenning trains, coaches, and consults worldwide. He started developing software in the late 1970s and has worn many hats, including embedded systems engineer, technical lead, and engineering manager. James invented Planning Poker, an Agile estimation technique, and is one of the original authors of the Manifesto for Agile Software Development.