Empty project in Sonarserver for Test Automation(C#) code

SonarScanner for MSBuild: 4.0.2.892
TeamCity Enterprise 2018.1.5
MSBuild version: Microsoft Build Tools 2017
MSBuild ToolsVersion: 15.0
Build Agent runs on Windows Server 2016, version 10.0

We have a requirement to scan our Test automation code (C#) in the CI pipeline(TeamCity).
We have added Begin and End steps corresponding to “Sonarscanner for MSbuild”.
The Analysis is successful, project gets created in Sonarqube server. But the project is EMPTY with no validation errors highlighted.
On checking the build logs, our project is categorised as TEST (rightfully).

  1. Does Sonarscanner NOT publish the results to the Sonarserver for Test projects??
  2. If so, is there any workaround to instruct the scanner to read our project as “Product / Non-test”?
  3. Does the scan focus only on new code since the previous commit. The screenshot makes me think only new code is being subject to scan? Refer attachment

SonarServer screenshot and Logs with Verbose ON attached. (Have masked project related strings)buildlog.txt (106.7 KB)

  1. Test code is not scanned by the Scanner for MSBuild
  2. You can tell the scanner to treat an MSBuild project as a test project or a product project by setting the MSBuild property SonarQubeTestProject in the project file as described in the Detection of Test Projects of the docs.
  3. All of the code will be scanned and all of the issues uploaded. The “new code” period shows how metrics have changed against a baseline so you can monitor the change in quality for the current development cycle. See the Fixing the Water Leak page in the docs for more info.