We have unit testing working with the Zephyr Unity/CMock setup, however the test runner (test_runner_generate) ignores preprocessor directives (#ifdef) and removes them when creating the runner_x.c file. This leads to the runner_x.c file including both the #ifdef and #else lines.
We tried to modify the unity_cfg.yaml file with the line below as specified in the Ceedling documentation (https://github.com/ThrowTheSwitch/Ceedling/blob/master/docs/CeedlingPacket.md) but it had no effect.