ThrowTheSwitch / CMock

CMock - Mock/stub generator for C
http://throwtheswitch.org
MIT License
684 stars 276 forks source link

Mocking header in subdirectory #436

Closed GrantRolls closed 10 months ago

GrantRolls commented 1 year ago

Hi, I'm trying to get the ceedling & CMock framework up and running with zephyr OS

It uses subdirectory pathing heavily, what is the best practice / easiest way to mock out a pathed header file?

eg #include <zephyr/settings/settings.h>

Would be? #include <zephyr/settings/mock_settings.h>

Hannes103 commented 1 year ago

Hello, it seems that I'm quiet late to the party.

The current 0.32.0-rc should support sub folder mocks, see: https://github.com/ThrowTheSwitch/Ceedling/issues/358