Hello Team,
We use nrf connect sdk on windows for development.
We are trying to setup the unit tetsing environment for our project and came across https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/test_framework/testing_unity_cmock.html .
I run the unity example with twister as described in https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/test_framework/running_unit_tests.html#running-unit-tests.
in my case the twister command looks like this "python C:\ncs\v2.7.0\zephyr\scripts\twister -T . -p qemu_cortex_m3". I have also changed the board in testcase.yml from native_posix to qemu_cortex_m3.
Q1) from my understanding its not possible to run the twister/build for native_posix in windows. Is it correct ?
After running the Twister (in my case "python C:\ncs\v2.7.0\zephyr\scripts\twister -T . -p qemu_cortex_m3"),seems like twister skips the test cases. Please see the attached screenshot.
Q2) How can i solve this issue and succesfuly run the tests ?
Q3) We also have second source project with another chip manufacturer.There also we use Zephyr. Is it possible to use the same framework(Unit testing with Unity and CMake in nrf connect SDK) for other zephyr projects ?From my understanding the CONFIG_UNITY in prj.conf is only available in the nrf connect sdk environment,not in Zephyr.
Q4) I have also tried to use west build and run the tes cases. Build was successfull ( west build -b qemu_cortex_m3 -p). But running throws error.
regards
Adarsh