Practicing TDD in C is different than in Object Oriented languages. Specifically inserting test-doubles into your code and tests cannot rely on subclassing. You need to be proficient on using every stage of the build to sneak in the test doubles. Embedded developers often face the largest challenges, as they are likely to be wed to non-standard silicon-specific compiler tool chains.

In this class we’ll see the latest using the linker, preprocessor, and function pointers to break problem dependencies. We’ll also look at some of the tools available like CppUMock and the Fake Function Framework to avoid the tedium of creating all your test doubles and wiring by hand.

You must be a Member to view this post and you are currently not logged in.

You can either log in below or sign up here.