Test Coverage 0% Xcode 14.3.1 on M1 Mac

SonarQube = 10.1
SonarScanner = 5.~

Dev instance
installed via zip testing locally
simple project with 1 unit test shows 0%

technique being used for test coverage: Slather

inside .slather.yml

coverage_service: cobertura_xml
xcodeproj: Abc.xcodeproj
scheme: Abc
output_directory: slather-report

sonar project.properties

# Sonar Server details
sonar.host.url=http://localhost:9000
sonar.token=asdf

# Project Details
sonar.projectKey=test2
sonar.projectName=Abc
sonar.projectDescription=This is the Sonar demo application for the code quality check

# Comment if you have a project with mixed ObjC / Swift
sonar.language=swift

# Path to source directories
sonar.sources=Abc
sonar.tests=AbcTests

# Exclude directories
sonar.exclusions=**/*.java, **/*.php, **/*.py, **/*.cs, **/*.js, **/*.jsx, **/*.xcresult/**

#Don't scan
sonar.c.file.suffixes=-
sonar.cpp.file.suffixes=-
sonar.objc.file.suffixes=-

sonar.swift.simulator=platform=iOS Simulator,name=iPhone 14 Pro,OS=16.1

sonar.swift.project=Abc.xcodeproj

sonar.swift.appName=Abc

# Scheme to build your application
sonar.swift.appScheme=Abc

# Configuration to use for your scheme. if you do not specify that the default will be Debug
sonar.swift.appConfiguration=Debug

# SCM
sonar.scm.disabled=true

sonar.swift.coverage.reportPath=slather-report/cobertura.xml


Project compiles and build successfully, same as the tests.
test coverage is set to all the targets
it shows in xcode 40%

run slather on terminal and then sonar-scanner
still nothing shows up for test coverage but for code smells it shows some.

stuff is in the project root directory

Slather was installed used gems and properly installed on $path
Running out of ideas over here.

Hey there,

What Edition of SonarQube are you using? (Community, Developer…)

Hi Colin,

Is Dev instance

Thanks.

You should know in that case that these parameters are doing nothing (they’re only used in the community swift plugin)

And SonarQube does not support importing Cobertura reports for Swift. You should try the --sonarqube-xml coverage format.