I am running Community Edition v7.4.18908. Team City is my CI tool
When I try to exclude multiple files from code coverage I encounter this error " *ERROR: Unrecognized option: **/Test.cs,"
Below is the logs…
Starting SQS from C:\BuildAgent\tools\sonar-qube-scanner.2.4-runner
-classpath
C:\BuildAgent\tools\sonar-qube-scanner.2.4-runner\lib\sonar-runner-dist-2.4.jar
org.sonar.runner.Main
"-Dproject.home=."
"-Dsonar.host.url=http://sonarqube.pinnacle.com:9000/sonar"
"-Dsonar.projectKey=API Registration"
"-Dsonar.projectName=Fraud API"
"-Dsonar.projectVersion=1.0.246-dev"
"-Dsonar.sources=D:\tc\ba\w\ae95da36a09f7442\.Publish"
"-Dsonar.binaries=D:\tc\ba\w\ae95da36a09f7442\.Publish"
"-Dsonar.java.binaries=D:\tc\ba\w\ae95da36a09f7442\.Publish"
"-Dsonar.login=d320bcb3d6c44ccc7f9cdc4059c7dabdd6aaaf38"
-X
-Dsonar.analysis.mode=publish
-Dsonar.coverage.exclusions=**/AssemblyInfo.cs,
**/*Test.cs,
**/*Tests.cs,
**/*Test.dll,
**/*Tests.dll
-Dsonar.exclusions=*.xml, **/AngularJs/**/*.css, **/bootstrap/**/*.css, **/modernizr*.js, **/*bootstrap*.css, **/jquery*/**/*, MyProject.Api.Registration/**/*, **/*SwaggerExamples*/**/*, **/*OrleansSiloHostSettings.cs,
-Dsonar.log.level=DEBUG
-Dsonar.scm.provider=git
-Dsonar.sourceEncoding=UTF-8
-Dsonar.verbose=true
-Dscanner.home=C:\BuildAgent\tools\sonar-qube-scanner.2.4-runner
Starting: "C:\Program Files\Java\jdk1.8.0_131\bin\java.exe" -classpath C:\BuildAgent\tools\sonar-qube-scanner.2.4-runner\lib\sonar-runner-dist-2.4.jar org.sonar.runner.Main "-Dproject.home=." "-Dsonar.host.url=http://sonarqube.ABC.com:9000/sonar" "-Dsonar.projectKey=API_Registration" "-Dsonar.projectName=API Registration" "-Dsonar.projectVersion=1.0.246-dev" "-Dsonar.sources=D:\tc\ba\w\ae95da36a09f7442\.Publish" "-Dsonar.binaries=D:\tc\ba\w\ae95da36a09f7442\.Publish" "-Dsonar.java.binaries=D:\tc\ba\w\ae95da36a09f7442\.Publish" "-Dsonar.login=d320bcb3d6c44ccc7f9cdc4059c7dabdd6aaaf38" -X -Dsonar.analysis.mode=publish -Dsonar.coverage.exclusions=**/AssemblyInfo.cs, **/*Test.cs, **/*Tests.cs, **/*Test.dll, **/*Tests.dll "-Dsonar.exclusions=*.xml, **/AngularJs/**/*.css, **/bootstrap/**/*.css, **/modernizr*.js, **/*bootstrap*.css, **/jquery*/**/*, Api.Registration.OrleansSiloHost/**/*, **/*SwaggerExamples*/**/*, **/*OrleansSiloHostSettings.cs," -Dsonar.log.level=DEBUG -Dsonar.scm.provider=git -Dsonar.sourceEncoding=UTF-8 -Dsonar.verbose=true -Dscanner.home=C:\BuildAgent\tools\sonar-qube-scanner.2.4-runner
in directory: D:\tc\ba\w\ae95da36a09f7442
INFO:
ERROR: Unrecognized option: **/*Test.cs,
INFO: usage: sonar-runner [options]
INFO:
INFO: Options:
INFO: -D,--define <arg> Define property
INFO: -e,--errors Produce execution error messages
INFO: -h,--help Display help information
INFO: -v,--version Display version information
INFO: -X,--debug Produce execution debug output