Unity testing fail to run examples in nrf sdk

Hello!

We have developed a product that we would like to add some testing for and I have looked at both ztest and unity testing. Currently I am struggling with running the examples for unity testing that is available under the nrf sdk in "ncs/v2.5.3/nrf/applications/asset_tracker_v2/tests/debug_module". I am navigating to the path and then trying to run it with both twister and west but can't get it to work. I am running this under WSL in windows and I am able to build and flash devices but not to run this tests. Followed this guide: docs.nordicsemi.com/.../unit_test.html

I then tried checked the logs (or ran with -i and got following):

I tried also to setup a test using ZTEST and this I got to work with having very simple asert true is true,but when I tried to include my project headers in the code it started to complain about missing includes "bluetooth/gatt_dm.h: No such file or directory" even if I had in the prj file set up CONFIG_BT=y.

Parents Reply Children
No Data