This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Unity Test Framework - Adding multiple test files

Hello,

I am trying to integrate the Unity test framework into our project and running into issues with how to add additional test files.
Nordic provides one example project in the nRF Connect SDK repository here: https://github.com/nrfconnect/sdk-nrf/tree/master/tests/unity/example_test.

This sample was helpful but the moment I attempt to add another source file, "example_test_2.c" for example, the generation of the test binary fails.
It seems that I can only generate one test runner per CMake project with the CMake directive: "test_runner_generate(src/example_test.c)". 

Can Nordic provide any help or direction here?

Related