AnsweredAssumed Answered

Mocking peripherals for unit testing

Question asked by Greg Bodnar on Mar 23, 2017
Latest reply on Oct 25, 2017 by Laurens Miers

I have been experimenting with using unity as a unit-testing tool, together with ceedling and cmock, against code developed with SDK2.1. I have only succeeded in getting trivial tests working before running into issues involving drivers. It seems as if cmock fails on static inline functions.

 

Has anyone managed to properly harness a project built on SDK2.1 or SDK2.2? I am not specifically tied to unity/ceedling/cmock. I would be happy with any tool that manages to penetrate the layers of register definitions and operations.

Outcomes