Hi All, I am using the latest version of sonarQube 8.3 and have been running into the issue of can’t be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files.
My project structure is:
Apollo
|- Apollo.UI
|- Apollo.UI.Tests
|- packages
|- Apollo.sln
I am using these commands to build the project -
SonarScanner.MSBuild.exe begin -k:“abc” -d:sonar.cs.dotcover.reportsPaths=dotCover.html -d:sonar.sources=Apollo.UI -d:sonar.tests=Apollo.UI.Tests
MSBuild.exe Apollo.sln /t:Rebuild
SonarScanner.MSBuild.exe end
Please help. This was working fine until SonarQube 5.6 and with the upgrade to 8.3 it has started giving this issue.
please give us the verbose output of the END step (please run SonarScanner.MSBuild.exe begin /k:"MyProject" /d:sonar.verbose=true as the BEGIN step, and please attach the output of END step)
Hi @Endrei After removing sonar.source and sonar.tests from the begin command, it has started working now. Now the report doesn’t show any test data even though dotCover.html and Tests.trx is there. Do we have to pass --collect for this to work ?