Hello @Colin . Thanks for your reply. Also we have update SonarQube to version 9.7.0.61563. For the tests we have created a new repo with a single C file (counter.c) to try if everything is working.Complete new sonar.properties file with the suggested configurations from SonarQube. Quality Gate is enabled by default. We have the same behavior. The file is not covered at all. As you suggested, i am adding the log from the pipeline. sonar.log (85.6 KB)
Every suggestion will be much appreciated.
Thanks!
From what I can see in your log, there is a problem in the way the build-wrapper is called.
You are calling the build-wrapper with the command that configures your build. Because of this, the build-wrapper can only see the way CMake tests files are compiled. Not your files.
Instead, you should call it with the command performing a clean build of your code (after configuring it of course). I think that would look more like this: