Test-Driven Development for Embedded C
eBook - ePub

Test-Driven Development for Embedded C

  1. 354 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

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

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • 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.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Test-Driven Development for Embedded C by James W. Grenning in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in C. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Test-Driven Development for Embedded C
  2. For the Best Reading Experience...
  3. ​
  4. Table of Contents
  5. What People Are Saying About Test-Driven Development for Embedded C
  6. Foreword by Jack Ganssle
  7. Foreword by Robert C. Martin
  8. Acknowledgments
  9. Preface
  10. Chapter 1: Test-Driven Development
  11. Part 1: Getting Started
  12. Chapter 2: Test-Driving Tools and Conventions
  13. Chapter 3: Starting a C Module
  14. Chapter 4: Testing Your Way to Done
  15. Chapter 5: Embedded TDD Strategy
  16. Chapter 6: Yeah, but...
  17. Part 2: Testing Modules with Collaborators
  18. Chapter 7: Introducing Test Doubles
  19. Chapter 8: Spying on the Production Code
  20. Chapter 9: Runtime-Bound Test Doubles
  21. Chapter 10: The Mock Object
  22. Part 3: Design and Continuous Improvement
  23. Chapter 11: SOLID, Flexible, and Testable Designs
  24. Chapter 12: Refactoring
  25. Chapter 13: Adding Tests to Legacy Code
  26. Chapter 14: Test Patterns and Antipatterns
  27. Chapter 15: Closing Thoughts
  28. Part 4: Appendixes
  29. Appendix 1: Development System Test Environment
  30. Appendix 2: Unity Quick Reference
  31. Appendix 3: CppUTest Quick Reference
  32. Appendix 4: LedDriver After Getting Started
  33. Appendix 5: Example OS Isolation Layer
  34. Appendix 6: Bibliography