TDD for Embedded C
2018-01-22 23:39:56 UTC
Most useful learnings:
Got a good introduction to TDD concepts and a refresher on cpputest, including some new options. We could certainly improve some of our existing test harnesses by using the latest cpputest and also provide better test coverage.
Concepts v exercises:
Presentation v discussion:
Exercises were generally good enough to reinforce the concepts discussed in the class and give us some hands-on experiences within the time constraints of the class.
There are some limited use cases in our codebase where we could use these concepts rightaway, especially in small and clean libraries closer to the leaf nodes of our system topology.
Challenges to applying:
cpputest is not a good fit for some of the larger legacy components in our codebase. There are too many dependencies at compile-time, link-time and run-time. Also, in a highly complex real-time system, there is a lot of HW interfaces whose behavior cannot always be completely emulated.
Legacy code workshop:
Recommend to others: