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.