
- 354 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Test-Driven Development for Embedded C
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++. ==
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Table of contents
- Test-Driven Development for Embedded C
- For the Best Reading Experience...
- ​
- Table of Contents
- What People Are Saying About Test-Driven Development for Embedded C
- Foreword by Jack Ganssle
- Foreword by Robert C. Martin
- Acknowledgments
- Preface
- Chapter 1: Test-Driven Development
- Part 1: Getting Started
- Chapter 2: Test-Driving Tools and Conventions
- Chapter 3: Starting a C Module
- Chapter 4: Testing Your Way to Done
- Chapter 5: Embedded TDD Strategy
- Chapter 6: Yeah, but...
- Part 2: Testing Modules with Collaborators
- Chapter 7: Introducing Test Doubles
- Chapter 8: Spying on the Production Code
- Chapter 9: Runtime-Bound Test Doubles
- Chapter 10: The Mock Object
- Part 3: Design and Continuous Improvement
- Chapter 11: SOLID, Flexible, and Testable Designs
- Chapter 12: Refactoring
- Chapter 13: Adding Tests to Legacy Code
- Chapter 14: Test Patterns and Antipatterns
- Chapter 15: Closing Thoughts
- Part 4: Appendixes
- Appendix 1: Development System Test Environment
- Appendix 2: Unity Quick Reference
- Appendix 3: CppUTest Quick Reference
- Appendix 4: LedDriver After Getting Started
- Appendix 5: Example OS Isolation Layer
- Appendix 6: Bibliography