XML conversion of Html files of gcda code coverage

I was trying to convert the Html file into cobertura format which is readable by SonarQube while converting the html file SonarQube was not able to generate the XML File
Below is the Error :

C:\Users\INSABN\Downloads\Repo_4_for_new_MCU>sonar-scanner
21:59:02.896 INFO  Scanner configuration file: C:\Tools\sonar-scanner\sonar-scanner-7.1.0.4889-windows-x64\bin\..\conf\sonar-scanner.properties
21:59:02.896 INFO  Project root configuration file: C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\sonar-project.properties
21:59:02.912 INFO  SonarScanner CLI 7.1.0.4889
21:59:02.912 INFO  Java 17.0.13 Eclipse Adoptium (64-bit)
21:59:02.912 INFO  Windows 11 10.0 amd64
21:59:02.928 INFO  User cache: C:\Users\INAYBAS\.sonar\cache
21:59:03.663 INFO  Communicating with SonarQube Community Build 25.5.0.107428
21:59:03.664 INFO  JRE provisioning: os[windows], arch[amd64]
21:59:04.088 INFO  Starting SonarScanner Engine...
21:59:04.096 INFO  Java 17.0.13 Eclipse Adoptium (64-bit)
21:59:05.147 INFO  Load global settings
21:59:05.218 INFO  Load global settings (done) | time=70ms
21:59:05.221 INFO  Server id: 147B411E-AZdfuT-szmoy8ViVRuX9
21:59:05.230 INFO  Loading required plugins
21:59:05.230 INFO  Load plugins index
21:59:05.244 INFO  Load plugins index (done) | time=13ms
21:59:05.245 INFO  Load/download plugins
21:59:05.290 INFO  Load/download plugins (done) | time=47ms
21:59:05.653 INFO  Process project properties
21:59:05.704 INFO  Process project properties (done) | time=51ms
21:59:05.722 INFO  Project key: Rex601
21:59:05.723 INFO  Base dir: C:\Users\INSABN\Downloads\Repo_4_for_new_MCU
21:59:05.723 INFO  Working dir: C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\.scannerwork
21:59:05.742 INFO  Load project settings for component key: 'Rex601'
21:59:05.759 INFO  Load project settings for component key: 'Rex601' (done) | time=19ms
21:59:05.789 INFO  Load quality profiles
21:59:05.848 INFO  Load quality profiles (done) | time=59ms
21:59:05.882 INFO  Load active rules
21:59:06.279 INFO  Load active rules (done) | time=398ms
21:59:06.279 INFO  Load analysis cache
21:59:06.310 INFO  Load analysis cache (1.4 kB) | time=31ms
21:59:06.357 INFO  Preprocessing files...
21:59:07.979 WARN  File 'C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\REX601_BSW\.git\objects\pack\pack-0f67165c58ccc1f6c746d2898ee20bb4c91e783b.pack' is bigger than 20MB and as consequence is removed from the analysis scope.
21:59:07.979 WARN  File 'C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\REX601_BSW\.git\objects\pack\pack-4a5a08423852de4ae22bce54f71b6644fb97a27b.pack' is bigger than 20MB and as consequence is removed from the analysis scope.
21:59:07.979 WARN  File 'C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\REX601_BSW\.git\objects\pack\pack-71004f00ea396ebefcfc4fda71457a665fa5c92b.pack' is bigger than 20MB and as consequence is removed from the analysis scope.
21:59:07.979 WARN  File 'C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\REX601_BSW\.git\objects\pack\pack-83657674e73ac25380b79f9cb12f9d8e5b28d9b1.pack' is bigger than 20MB and as consequence is removed from the analysis scope.
21:59:07.994 WARN  File 'C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\REX601_BSW\.git\objects\pack\pack-8373c0498f02183aff091ebcab43efe419fe73bd.pack' is bigger than 20MB and as consequence is removed from the analysis scope.
21:59:07.994 WARN  File 'C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\REX601_BSW\.git\objects\pack\pack-99c643667dcbdf771b5bfc13521415c0c5c83f61.pack' is bigger than 20MB and as consequence is removed from the analysis scope.
21:59:09.665 WARN  File 'C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\REX601_BSW\OSAL\src\docs\Hw Ref\Am335x technical manual.pdf' is bigger than 20MB and as consequence is removed from the analysis scope.
21:59:10.218 WARN  File 'C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\REX601_BSW\Tools\SDK\SDK_24_12_0_EVK-MIMXRT1064.zip' is bigger than 20MB and as consequence is removed from the analysis scope.
21:59:10.235 INFO  6 languages detected in 7484 preprocessed files
21:59:10.235 INFO  Loading plugins for detected languages
21:59:10.235 INFO  Load/download plugins
21:59:10.250 INFO  Load/download plugins (done) | time=15ms
21:59:10.519 INFO  Executing phase 2 project builders
21:59:10.519 INFO  Executing phase 2 project builders (done) | time=0ms
21:59:10.519 INFO  Load project repositories
21:59:10.661 INFO  Load project repositories (done) | time=142ms
21:59:10.683 INFO  Indexing files...
21:59:10.683 INFO  Project configuration:
21:59:11.869 INFO  7483 files indexed
21:59:11.870 INFO  Quality profile for cs: Sonar way
21:59:11.870 INFO  Quality profile for js: Sonar way
21:59:11.871 INFO  Quality profile for json: Sonar way
21:59:11.871 INFO  Quality profile for web: Sonar way
21:59:11.872 INFO  Quality profile for xml: Sonar way
21:59:11.872 INFO  Quality profile for yaml: Sonar way
21:59:11.873 INFO  ------------- Run sensors on module Rex601
21:59:11.903 INFO  Load metrics repository
21:59:11.922 INFO  Load metrics repository (done) | time=18ms
21:59:12.400 INFO  Sensor C# Project Type Information [csharp]
21:59:12.400 INFO  Sensor C# Project Type Information [csharp] (done) | time=0ms
21:59:12.400 INFO  Sensor C# Analysis Log [csharp]
21:59:12.431 INFO  Sensor C# Analysis Log [csharp] (done) | time=31ms
21:59:12.447 INFO  Sensor C# Method Declarations [csharp]
21:59:12.447 INFO  Sensor C# Method Declarations [csharp] (done) | time=16ms
21:59:12.447 INFO  Sensor C# Telemetry [csharp]
21:59:12.447 INFO  Sensor C# Telemetry [csharp] (done) | time=0ms
21:59:12.447 INFO  Sensor C# Properties [csharp]
21:59:12.447 INFO  Sensor C# Properties [csharp] (done) | time=0ms
21:59:12.447 INFO  Sensor HTML [web]
21:59:13.062 INFO  Sensor HTML [web] (done) | time=615ms
21:59:13.062 INFO  Sensor XML Sensor [xml]
21:59:13.078 INFO  56 source files to be analyzed
21:59:14.573 INFO  56/56 source files have been analyzed
21:59:14.573 INFO  Sensor XML Sensor [xml] (done) | time=1496ms
21:59:14.573 INFO  Sensor JaCoCo XML Report Importer [jacoco]
21:59:14.573 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
21:59:14.575 INFO  No report imported, no coverage information will be imported by JaCoCo XML Report Importer
21:59:14.583 INFO  Sensor JaCoCo XML Report Importer [jacoco] (done) | time=17ms
21:59:14.583 INFO  Sensor IaC CloudFormation Sensor [iac]
21:59:14.605 INFO  0 source files to be analyzed
21:59:14.605 INFO  0/0 source files have been analyzed
21:59:14.605 INFO  Sensor IaC CloudFormation Sensor [iac] (done) | time=30ms
21:59:14.605 INFO  Sensor IaC Kubernetes Sensor [iac]
21:59:14.746 INFO  0 source files to be parsed
21:59:14.746 INFO  0/0 source files have been parsed
21:59:14.746 INFO  0 source files to be analyzed
21:59:14.746 INFO  0/0 source files have been analyzed
21:59:14.746 INFO  0 source files to be checked
21:59:14.746 INFO  0/0 source files have been checked
21:59:14.746 INFO  Sensor IaC Kubernetes Sensor [iac] (done) | time=141ms
21:59:14.762 INFO  Sensor IaC AzureResourceManager Sensor [iac]
21:59:14.935 INFO  0 source files to be analyzed
21:59:14.935 INFO  0/0 source files have been analyzed
21:59:14.935 INFO  Sensor IaC AzureResourceManager Sensor [iac] (done) | time=189ms
21:59:14.935 INFO  Sensor Java Config Sensor [iac]
21:59:14.992 INFO  0 source files to be analyzed
21:59:14.992 INFO  0/0 source files have been analyzed
21:59:14.999 INFO  Sensor Java Config Sensor [iac] (done) | time=57ms
21:59:14.999 INFO  Sensor JavaScript/TypeScript analysis [javascript]
21:59:15.219 INFO  Detected os: Windows 11 arch: amd64 alpine: false. Platform: WIN_X64
21:59:15.219 INFO  Deploy location C:\Users\INAYBAS\.sonar\js\node-runtime, tagetRuntime: C:\Users\INAYBAS\.sonar\js\node-runtime\node.exe,  version: C:\Users\INAYBAS\.sonar\js\node-runtime\version.txt
21:59:15.269 INFO  Using embedded Node.js runtime.
21:59:15.269 INFO  Using Node.js executable: 'C:\Users\INAYBAS\.sonar\js\node-runtime\node.exe'.
21:59:16.945 INFO  Memory configuration: OS (32471 MB), Node.js (4144 MB).
21:59:19.016 INFO  Found 0 tsconfig.json file(s): []
21:59:19.032 INFO  Creating TypeScript program
21:59:19.032 INFO  TypeScript configuration file C:\Users\INAYBAS\AppData\Local\Temp\tsconfig-HuJyQW.json
21:59:19.032 INFO  1 source file to be analyzed
21:59:19.286 INFO  Starting analysis with current program
21:59:19.674 INFO  Analyzed 1 file(s) with current program
21:59:19.674 INFO  1/1 source file has been analyzed
21:59:19.674 INFO  Hit the cache for 0 out of 1
21:59:19.674 INFO  Miss the cache for 1 out of 1: ANALYSIS_MODE_INELIGIBLE [1/1]
21:59:19.674 INFO  Sensor JavaScript/TypeScript analysis [javascript] (done) | time=4682ms
21:59:19.674 INFO  Sensor JavaScript inside YAML analysis [javascript]
21:59:19.690 INFO  No input files found for analysis
21:59:19.690 INFO  Hit the cache for 0 out of 0
21:59:19.697 INFO  Miss the cache for 0 out of 0
21:59:19.697 INFO  Sensor JavaScript inside YAML analysis [javascript] (done) | time=16ms
21:59:19.697 INFO  Sensor JavaScript inside HTML analysis [javascript]
21:59:19.697 INFO  1 source file to be analyzed
21:59:19.724 INFO  1/1 source file has been analyzed
21:59:19.724 INFO  Hit the cache for 0 out of 1
21:59:19.724 INFO  Miss the cache for 1 out of 1: ANALYSIS_MODE_INELIGIBLE [1/1]
21:59:19.724 INFO  Sensor JavaScript inside HTML analysis [javascript] (done) | time=34ms
21:59:19.724 INFO  Sensor CSS Rules [javascript]
21:59:19.738 INFO  22 source files to be analyzed
21:59:19.753 WARN  Invalid character encountered in file C:/Users/INSABN/Downloads/Repo_4_for_new_MCU/REX601_BSW/OSAL/src/Quadros/Tools/RTXCgen/RTXCgenReleaseNotes.htm at line 2016 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
21:59:19.863 WARN  Invalid character encountered in file C:/Users/INSABN/Downloads/Repo_4_for_new_MCU/REX601_BSW/OSAL/src/Quadros/Help/Kernel/RTXCgenReleaseNotes.htm at line 2016 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
21:59:20.032 INFO  22/22 source files have been analyzed
21:59:20.032 INFO  Hit the cache for 0 out of 0
21:59:20.032 INFO  Miss the cache for 0 out of 0
21:59:20.032 INFO  Sensor CSS Rules [javascript] (done) | time=308ms
21:59:20.032 INFO  Sensor IaC Docker Sensor [iac]
21:59:20.111 INFO  0 source files to be analyzed
21:59:20.111 INFO  0/0 source files have been analyzed
21:59:20.111 INFO  Sensor IaC Docker Sensor [iac] (done) | time=79ms
21:59:20.111 INFO  Sensor TextAndSecretsSensor [text]
21:59:20.111 INFO  Available processors: 16
21:59:20.111 INFO  Using 16 threads for analysis.
21:59:20.428 INFO  The property "sonar.tests" is not set. To improve the analysis accuracy, we categorize a file as a test file if any of the following is true:
  * The filename starts with "test"
  * The filename contains "test." or "tests."
  * Any directory in the file path is named: "doc", "docs", "test" or "tests"
  * Any directory in the file path has a name ending in "test" or "tests"

21:59:20.698 INFO  Using git CLI to retrieve untracked files
21:59:20.798 WARN  Analyzing only language associated files, make sure to run the analysis inside a git repository to make use of inclusions specified via "sonar.text.inclusions"
21:59:20.869 INFO  94 source files to be analyzed
21:59:21.101 INFO  94/94 source files have been analyzed
21:59:21.102 INFO  Sensor TextAndSecretsSensor [text] (done) | time=990ms
21:59:21.102 INFO  ------------- Run sensors on project
21:59:21.259 INFO  Sensor C# Telemetry processor [csharp]
21:59:21.259 INFO  Sensor C# Telemetry processor [csharp] (done) | time=0ms
21:59:21.259 INFO  Sensor C# [csharp]
21:59:21.259 WARN  Your project contains C# files which cannot be analyzed with the scanner you are using. To analyze C# or VB.NET, you must use the SonarScanner for .NET 5.x or higher, see https://redirect.sonarsource.com/doc/install-configure-scanner-msbuild.html
21:59:21.259 INFO  Sensor C# [csharp] (done) | time=0ms
21:59:21.259 INFO  Sensor Analysis Warnings import [csharp]
21:59:21.259 INFO  Sensor Analysis Warnings import [csharp] (done) | time=0ms
21:59:21.259 INFO  Sensor C# File Caching Sensor [csharp]
21:59:21.259 WARN  Incremental PR analysis: Could not determine common base path, cache will not be computed. Consider setting 'sonar.projectBaseDir' property.
21:59:21.259 INFO  Sensor C# File Caching Sensor [csharp] (done) | time=0ms
21:59:21.275 INFO  Sensor Generic Coverage Report
21:59:21.275 INFO  Parsing C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\coverage.xml
21:59:21.369 ERROR Error during parsing of the generic coverage report 'C:\Users\INSABN\Downloads\Repo_4_for_new_MCU\coverage.xml'. Look at SonarQube documentation to know the expected XML format.
21:59:21.935 INFO  EXECUTION FAILURE

Hi,

As mentioned in the error message, you’ll find the expected format in the docs.

 
HTH,
Ann