ThrowTheSwitch / CMock

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

How to use CMock without ceedling? #392

Closed Warchant closed 3 months ago

Warchant commented 2 years ago

Is it possible to use CMock without ceedling? I want to use my own build system instead of ceedling.

Letme commented 2 years ago

We are using it with Makefile. We have it submoduled in our repo, which makes for easy updating and developing. The details are here: https://github.com/ThrowTheSwitch/CMock/issues/389#issuecomment-1085576545

Tuc-an commented 2 years ago

Yes, I've used CMock for years but have never tried ceedling (sorry!).

Have you tried https://github.com/ThrowTheSwitch/CMock/tree/master/examples/make_example ?

Warchant commented 2 years ago

Thanks. Is it also possible to remove unity dependency? I want to just generate mocks (files) and that's all.

Letme commented 2 years ago

You will need to provide some layer for assertion macros to be translated to your framework, but we are not using Unity below. Files are generated with those lines, but you wont be able to compile them without the definitions of the macros somewhere.