In our current CI (gitlab-ci, but that does not really matter) building and testing is done in two separate steps and isolated docker instances. So in the first the software is built, then the tests are uploaded as artifact and later downloaded into a new docker instance to run the nunit-tests.
Adding SonarScanner.MSBuild.exe to the build step worked fine. I was however not able to find information on how or even if I can upload/merge the nunit results of the tests, as SonarScanner requires msbuild to be run.
Thus: Is this possible at all? Maybe by adding the .sonarqube directory to the artifact and running “end” later?