Problem creating and running unit tests that do not build entire zephyr

We are trying to improve code coverage and do more unit tests but run into slowdowns due to always building zephyr for the tests.
What is the recommended way (from Nordic) to create CMakeLists.txt for unit tests in such a way that it can include the unit testing tools from Nordic SDK including automatic generation of mocks etc (cmock_handle) while not building in Zephyr?

I assume that the SDK has already fetched and set up everything so it should just be a matter of selecting the appropriate packages/bits?

It would speed up our tests a lot, as building Zephyr accounts for over 94% of our unit tests runtime.

Parents Reply Children
No Data
Related