Which versions are you using:
SonarQube: Developer Edition v10.6
How is SonarQube deployed:
Zip
what are you trying to achieve:
I would like SonarQube to display the code coverage for the project based on the uploaded xml file. The xml file is created and filled in correctly.
sonar.swift.coverage.reportPaths=sonar-reports/coverage-swift.xml in sonar-project.properties file.
Logs:
INFO: Preprocessing files…
INFO: 3 languages detected in 1074 preprocessed files
INFO: 0 files ignored because of scm ignore settings
INFO: Loading plugins for detected languages
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=55ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=243ms
INFO: Indexing files…
INFO: Project configuration:
INFO: 1074 files indexed
INFO: Quality profile for c: Sonar way
INFO: Quality profile for json: Sonar way
INFO: Quality profile for swift: Sonar way
INFO: ------------- Run sensors on module Vip_Parker_IOS
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=222ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=8ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=225ms
INFO: Sensor IaC AzureResourceManager Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC AzureResourceManager Sensor [iac] (done) | time=154ms
INFO: Sensor Java Config Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor Java Config Sensor [iac] (done) | time=28ms
INFO: Sensor Swift Code Quality and Security [swift]
INFO: 312 source files to be analyzed
INFO: 312/312 source files have been analyzed
INFO: Parse coverage report (sonar-reports/coverage-swift.xml)
INFO: Sensor Swift Code Quality and Security [swift] (done) | time=9918ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=90ms
INFO: Sensor Generic Test Executions Report
INFO: Parsing /Users/grzegorzszymanski/Vip_Parker_IOS/VIPParker/sonar-reports/testCoverage-swift.xml
INFO: Imported test execution data for 0 files
INFO: Test execution data ignored for 20 unknown files, including:
AccountRepositoryTests
DeviceManagerTests
CarsDataRepositoryTests
CreditCardsRepositoryTests
LocationRepository
INFO: Sensor Generic Test Executions Report (done) | time=26ms
INFO: Sensor CFamily [cpp]
INFO: CFamily plugin version: 6.56.0.72172
INFO: CFamily analysis configuration mode: AutoConfig
INFO: AutoConfig mode for C and C++ is enabled
INFO: Objective-C is not supported in AutoConfig mode
INFO: The following rules aren’t available in AutoConfig mode: [S819, S820, S860, S878, S905, S961, S1068, S1235, S2275, S3744, S4263, S5265, S5276, M23_324, S930, S950, S1914, S5536]
INFO: Available processors: 8
INFO: Using 8 threads for analysis.
INFO: Loading cache from: server
INFO: 0 compilation units to be analyzed, 0 C, 0 CPP
INFO: Detected MacOS SDK include directories:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
INFO: Detected MacOS SDK frameworks directories:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
INFO: Detected local system include directories:
/opt/homebrew/include
INFO: AutoConfig detected dependencies:
INFO: Took 1486 ms to extract 1 dependencies
INFO: 0 directories to be analyzed for macros, 0 C, 0 CPP
INFO: Starting AutoConfig macros computation to configure additional preprocessor predefines for each directory
INFO: Macro computation cache: 0/0 hits
INFO: Macros computation for all directories done in: 3ms
INFO: Analysis done in: 1540ms
INFO: 1/1 files marked as unchanged
INFO: Analysis cache: 0/0 hits, 125 bytes
INFO: SE: 0 out of 0
INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
INFO: Z3 refutation rate: 0 out of 0
INFO: Percentage of files indexed with CFamily languages: 0,09% (C: 1, C++: 0, ObjC: 0, Indexed: 1074)
INFO: 0 compilation units were fully analyzed
INFO: 0 compilation units were partially analyzed: 0 stopped on Config, 0 stopped on Parsing, 0 stopped on AST, 0 stopped on SE, and 0 stopped on SE with PE
INFO: 0 compilation units timed out: 0 on analysis and 0 on macros computation
INFO: Sensor CFamily [cpp] (done) | time=5092ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: Available processors: 8
INFO: Using 8 threads for analysis.
INFO: Using git CLI to retrieve untracked files
INFO: Analyzing language associated files and files included via “sonar.text.inclusions” that are tracked by git
INFO: 513 source files to be analyzed
INFO: 513/513 source files have been analyzed
INFO: Sensor TextAndSecretsSensor [text] (done) | time=2689ms
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=96ms
INFO: CPD Executor 43 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 270 files
INFO: CPD Executor CPD calculation finished (done) | time=135ms
INFO: SCM revision ID ‘f4d3c118c07bbdc001fddaa2d058ec2768a9d9dd’
INFO: Load New Code definition
INFO: Load New Code definition (done) | time=223ms
INFO: Analysis report generated in 507ms, dir size=1.8 MB
INFO: Analysis report compressed in 842ms, zip size=884.9 kB
INFO: Analysis report uploaded in 247ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: http://localhost:9000/dashboard?id=TEZ-VipParker-Mobile-iOS
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=449a4dfe-205f-48c4-ad10-93fc38a085f8
INFO: Analysis total time: 45.074 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 48.568s
INFO: Final Memory: 30M/128M
INFO: -----------------
What have you tried so far to achieve this:
Project analysis are send without errors.
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!