TDD for Embedded C
2017-05-08 09:05:41 UTC
Most useful learnings:
The thing I found most useful in practice is, make this simple in the beginning, it does not have to cover all use-cases immediately. I also liked the book recommendations, links and other resources given, for further improvement and self-study.
Concepts v exercises:
Too many exercises
Presentation v discussion:
It would have been nice if we spent a bit less time on what we found good/bad/surprising about TDD.
A bit more digging into the specifics of embedded TDD, like more techniques on how to perform TDD when interfacing with ICs, mopre on how to handle memory-mapped IO.
Great pace, clear speech, entertaining.
Challenges to applying:
We have many versions of our chip, with different properties. Our libraries are built to act differently depending (based on preprocessor macros) on which chip it is. It is hard to do TDD with these because we would have to run the tests compiled for different targets.
Also, many libraries read directly from memory mapped IO, which makes them hard to test.
Legacy code workshop:
Recommend to others: