nrf52840dk, Windows 10 using VSCode, unit test issues

When following the unit test example, and even with an alternate minimal implementation, I get the following error:

PS {nRF Connect terminal} > west build -b nrf52840dk/nrf52840 --pristine
[snip]
-- Found assembler: C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Error at C:/ncs/v2.7.0/nrf/tests/unity/CMakeLists.txt:54 (message):
  Unable to find ruby

-- Configuring incomplete, errors occurred!
[snip]

Is Windows 10 a supported host for unit testing?

Parents
  • Hello,

    I don’t have an official installation script to share. The native_sim board relies on POSIX features native to Linux, so running it directly on Windows can sometimes cause dependency issues with Ruby, CMake, and POSIX. I recommend using Windows Subsystem for Linux, as setting up the native POSIX simulation environment for Zephyr’s unit testing and the nRF Connect SDK is not straightforward on Windows.

    Kind regards,
    Abhijith

Reply
  • Hello,

    I don’t have an official installation script to share. The native_sim board relies on POSIX features native to Linux, so running it directly on Windows can sometimes cause dependency issues with Ruby, CMake, and POSIX. I recommend using Windows Subsystem for Linux, as setting up the native POSIX simulation environment for Zephyr’s unit testing and the nRF Connect SDK is not straightforward on Windows.

    Kind regards,
    Abhijith

Children
No Data