Test Driven Development for Embedded C

-
Test Driven Development for Embedded C
PDF
  • eBook:
    Test Driven Development for Embedded C
  • Author:
    James W. Grenning
  • Edition:
    1 edition
  • Categories:
  • Data:
    May 5, 2011
  • ISBN:
    193435662X
  • ISBN-13:
    9781934356623
  • Language:
    English
  • Pages:
    356 pages
  • Format:
    PDF

-
Book Description
Another day without Test-Driven Development means more time wasted chasing bugs and watching your code deteriorate. You thought TDD was for someone else, but it's not! It's 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.

TDD is a modern programming practice 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, assuring your code does what you think. 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 1.5 decades 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 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 nextto 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++ (some project conversion may be needed).
-

Content

1. Test-Driven Development

I - Getting Started
2. Test-Driving Tools and Conventions
3. Starting a C Module
4. Testing Your Way to Done
5. Embedded TDD Strategy
6. Yeah, but...

II - Testing Modules with Collaborators
7. Introducing Test Doubles
8. Spying on the Production Code
9. Runtime-Bound Test Doubles
10. The Mock Object

III - Design and Continuous Improvement
11. SOLID, Flexible, and Testable Designs
12. Refactoring
13. Adding Tests to Legacy Code
14. Test Patterns and Antipatterns
15. Closing Thoughts

Free sample

-
Add comments
Прокомментировать
Введите код с картинки:*
Кликните на изображение чтобы обновить код, если он неразборчив
Copyright © 2019
-

-