How to Analyze a Project AND its Unit Test

Hello,

i have a Project here:

Sonar Lint works fine here:
https://sonarcloud.io/project/overview?id=Meisterschulen-am-Ostbahnhof-Munchen_cci_EasyExample

so, now:
i add a UNIT Test, using unity,
description here:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/unit-tests.html

so, the Project is here:

the Test Runner is here:

in the Moment the

File only builds the Main Application but not the Test Runner.

how to build the Test Runner also, and also build-wrap an analyze it ?

Thanks,
Franz

Hello @franz-ms-muc,

Sorry for the late reply.
Are you still facing the issue?
We analyze the files that are built by the command wrapped with build-wrapper and indexed by the sonar-scanner.
To analyze the source and test file, the command provided to build wrapper should cleanly build both of them. you can combine the two in one script and wrap it.

You can look at the generated JSON file to see the compilation command captured by build-wrapper.
Let me know if you have further questions,
Thanks,