small medium large xlarge

Test-Driven Development for Embedded C

by

Cover image for Test-Driven Development for Embedded C

Test-Driven Development for Embedded C

by

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.

Customer Reviews

This book is targeting the embedded-programmer-on-the-street and hits its target. It is neither spoon-fed baby talk nor useless theory-spin. In clear and simple prose, James shows working geeks each of the TDD concepts and their C implementations. Any C programmer can benefit from working through this book.

- Michael “GeePaw” Hill

Senior TDD coach, Anarchy Creek Software

“Test-Driven Development for Embedded C” is the first book I would recommend to both C and C++ developers wanting to learn TDD, whether or not their target is an embedded platform. It’s just that good.

- C. Keith Ray

Agile coach/trainer, Industrial Logic, Inc.

This book is a practical guide that sheds light on how to apply Agile development practices in the world of embedded software…I can heartily recommend reading this book; it’s a great way to learn how you can apply Test-Driven Development for embedded C.

- Rachel Davies

Author of "Agile Coaching," Agile Experience Limited

I have been preaching and teaching TDD in C for years, and finally there is a book I can recommend to fellow C programmers who want to learn more about modern programming techniques.

- Olve Maudal

C programmer, Cisco Systems

James is a true pioneer in applying Agile development techniques to embedded product development…this book was worth waiting for. This is a good and useful book that every embedded developer should read.

- Bas Vodde

Author of "Scaling Lean and Agile Development" and "Practices for Scaling Lean and Agile Development," Odd-e, Singapore

In this much-needed book, Agile methods expert James Grenning concisely demonstrates why and how to apply Test-Driven Development in embedded software development…with this book by my side, I’m ready to plunge right in and certain I can apply TDD even to device drivers and other challenging low-level code.

- Michael Barr

Author of "Programming Embedded Systems: With C and GNU Development Tools" and "Embedded C Coding Standard," Netrino, Inc.

See All Reviews

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.

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

Author

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.