- Test code is not scanned by the Scanner for MSBuild
- 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. - 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.