How to Analyze a Project AND its Unit Test


i have a Project here:

Sonar Lint works fine here:

so, now:
i add a UNIT Test, using unity,
description here:

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 ?


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,