Skip to Main Content
Test Driven Development for Embedded C
book

Test Driven Development for Embedded C

by James W. Grenning
April 2011
Intermediate to advanced content levelIntermediate to advanced
356 pages
8h 55m
English
Pragmatic Bookshelf
Content preview from Test Driven Development for Embedded C

Evolving Requirements and a Problem Design

Before we go in-depth into the two dynamic interface models, we’ll look at a requirements change that led to a problematic design. We’ll then see how the dynamic interface models can help create a better design.

So far in the home automation system design, we have not looked at the light-controlling hardware. The LightScheduler and its tests drove the design of the LightController interface introduced in Dependencies on Hardware and OS . The interface is intention-revealing and hardware-independent. Creating a test double for the interface allowed us to make concrete progress on the LightScheduler.

Now the product manager and hardware designers have refined some of the requirements. The system ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Design Patterns for Embedded Systems in C

Design Patterns for Embedded Systems in C

Bruce Powel Douglass

Publisher Resources

ISBN: 9781941222997Errata Page