Dear @Michael,
i have same issue while using typescript, sonar cannot detect the coverage even though the lcov.info file is available on the folder. please kindly check this debug logs
i am running sonarcloud on docker using jenkins
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /usr/src/sonar-project.properties
INFO: SonarScanner 5.0.1.3006
INFO: Java 17.0.11 Alpine (64-bit)
INFO: Linux 3.10.0-1160.88.1.el7.x86_64 amd64
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Analyzing on SonarCloud
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Load global settings
INFO: Load global settings (done) | time=359ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: Loading required plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=294ms
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=6269ms
INFO: Load project settings for component key: 'astrapay_cashin-admin-web'
INFO: Load project settings for component key: 'astrapay_cashin-admin-web' (done) | time=222ms
INFO: Process project properties
INFO: Project key: astrapay_cashin-admin-web
INFO: Base dir: /usr/src
INFO: Working dir: /tmp/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=249ms
INFO: Check ALM binding of project 'astrapay_cashin-admin-web'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'astrapay_cashin-admin-web' (done) | time=596ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=454ms
INFO: Load branch configuration
INFO: Load branch configuration (done) | time=744ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=304ms
INFO: Load active rules
INFO: Load active rules (done) | time=12526ms
INFO: Organization key: astrapay-1
INFO: Pull request 65 for merge into master from daily/emil
INFO: Preprocessing files...
INFO: 3 languages detected in 162 preprocessed files
INFO: 232 files ignored because of inclusion/exclusion patterns
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=8384ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=431ms
INFO: SCM collecting changed files in the branch
INFO: SCM collecting changed files in the branch (done) | time=63ms
INFO: Indexing files...
INFO: Project configuration:
INFO: Excluded sources: **/build-wrapper-dump.json, **/node_modules/**, **/src/environments/*, **/src/main.ts, **/src/**/*-routing.module.ts, **/src/**/*.model.ts, **/*.spec.ts
INFO: Included tests: **/*.spec.ts
INFO: 162 files indexed
INFO: Quality profile for css: Sonar way
INFO: Quality profile for ts: Sonar way
INFO: Quality profile for web: Sonar way
INFO: ------------- Run sensors on module astrapay_cashin-admin-web
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=578ms
INFO: Sensor cache enabled
INFO: Load sensor cache
INFO: Load sensor cache (287 KB) | time=67226ms
INFO: Sensor HTML [web]
INFO: Sensor HTML is restricted to changed files only
INFO: Sensor HTML [web] (done) | time=14ms
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=1ms
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=26ms
INFO: Sensor JavaScript/TypeScript analysis [javascript]
INFO: Detected os: Linux arch: amd64 alpine: true. Platform: UNSUPPORTED
INFO: Using Node.js executable: 'node'.
INFO: Memory configuration: OS (15883 MB), Node.js (4144 MB).
INFO: Found 2 tsconfig.json file(s): [/usr/src/tsconfig.json, /usr/src/e2e/tsconfig.json]
INFO: Creating TypeScript program
INFO: TypeScript configuration file /usr/src/tsconfig.json
INFO: 116 source files to be analyzed
INFO: Starting analysis with current program
INFO: Analyzed 65 file(s) with current program
INFO: Creating TypeScript program
INFO: TypeScript configuration file /usr/src/e2e/tsconfig.json
ERROR: Error: Circularity detected while resolving configuration: /usr/src/e2e/tsconfig.json -> /usr/src/e2e/tsconfig.json
ERROR: at createProgramOptions (/tmp/.scannerwork/.sonartmp/bridge-bundle/package/lib/jsts/src/program/program.js:96:15)
ERROR: at createProgram (/tmp/.scannerwork/.sonartmp/bridge-bundle/package/lib/jsts/src/program/program.js:126:28)
ERROR: at createAndSaveProgram (/tmp/.scannerwork/.sonartmp/bridge-bundle/package/lib/jsts/src/program/program.js:187:21)
ERROR: at MessagePort.<anonymous> (/tmp/.scannerwork/.sonartmp/bridge-bundle/package/lib/bridge/src/worker.js:101:86)
ERROR: at [nodejs.internal.kHybridDispatch] (node:internal/event_target:826:20)
ERROR: at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
ERROR: Failed to create program: Circularity detected while resolving configuration: /usr/src/e2e/tsconfig.json -> /usr/src/e2e/tsconfig.json
INFO: Found 51 file(s) not part of any tsconfig.json: they will be analyzed without type information
INFO: 116/116 source files have been analyzed
INFO: Hit the cache for 116 out of 116
INFO: Miss the cache for 0 out of 116
INFO: Sensor JavaScript/TypeScript analysis [javascript] (done) | time=10988ms
INFO: Sensor JavaScript inside HTML analysis [javascript]
INFO: 40 source files to be analyzed
INFO: 40/40 source files have been analyzed
INFO: Hit the cache for 40 out of 40
INFO: Miss the cache for 0 out of 40
INFO: Sensor JavaScript inside HTML analysis [javascript] (done) | time=128ms
INFO: Sensor CSS Rules [javascript]
INFO: Sensor CSS Rules is restricted to changed files only
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor CSS Rules [javascript] (done) | time=1ms
INFO: Sensor JavaScript/TypeScript Coverage [javascript]
INFO: Analysing [/usr/src/coverage/app/lcov.info]
WARN: Could not resolve 3 file paths in [/usr/src/coverage/app/lcov.info]
WARN: First unresolved path: src/app/core/http/http-param.model.ts (Run in DEBUG mode to get full list of unresolved paths)
INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=39ms
INFO: Sensor CSS Metrics [javascript]
INFO: Sensor CSS Metrics is restricted to changed files only
INFO: Sensor CSS Metrics [javascript] (done) | time=0ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: Sensor IaC Docker Sensor is restricted to changed files only
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=80ms
INFO: Sensor Serverless configuration file sensor [security]
INFO: 0 Serverless function entries were found in the project
INFO: 0 Serverless function handlers were kept as entrypoints
INFO: Sensor Serverless configuration file sensor [security] (done) | time=3ms
INFO: Sensor AWS SAM template file sensor [security]
INFO: Sensor AWS SAM template file sensor [security] (done) | time=1ms
INFO: Sensor AWS SAM Inline template file sensor [security]
INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms
INFO: Sensor Generic Test Executions Report
INFO: Parsing /usr/src/reports/ut_report.xml
INFO: Imported test execution data for 46 files
INFO: Sensor Generic Test Executions Report (done) | time=85ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: Sensor TextAndSecretsSensor is restricted to changed files only
INFO: Available processors: 12
INFO: Using 12 threads for analysis.
INFO: Sensor TextAndSecretsSensor [text] (done) | time=468ms
INFO: Sensor JavaSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5147, S5334, S5883, S6096, S6173, S6287, S6350, S6384, S6390, S6398, S6399, S6547, S6549
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /tmp/.scannerwork/ucfg2/java
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.002
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.002
INFO: No UCFGs have been included for analysis.
INFO: java security sensor: Time spent was 00:00:00.016
INFO: java security sensor: Begin: 2024-06-20T03:40:18.006188357Z, End: 2024-06-20T03:40:18.022495402Z, Duration: 00:00:00.016
Load type hierarchy and UCFGs: Begin: 2024-06-20T03:40:18.008008430Z, End: 2024-06-20T03:40:18.010663702Z, Duration: 00:00:00.002
Load type hierarchy: Begin: 2024-06-20T03:40:18.008093811Z, End: 2024-06-20T03:40:18.010155803Z, Duration: 00:00:00.002
Load UCFGs: Begin: 2024-06-20T03:40:18.010498782Z, End: 2024-06-20T03:40:18.010558931Z, Duration: 00:00:00.000
INFO: java security sensor peak memory: 109 MB
INFO: Sensor JavaSecuritySensor [security] (done) | time=20ms
INFO: Sensor CSharpSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5334, S5883, S6096, S6173, S6287, S6350, S6399, S6639, S6641
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /tmp/ucfg2/cs
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.000
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
INFO: No UCFGs have been included for analysis.
INFO: csharp security sensor: Time spent was 00:00:00.001
INFO: csharp security sensor: Begin: 2024-06-20T03:40:18.025254433Z, End: 2024-06-20T03:40:18.026296516Z, Duration: 00:00:00.001
Load type hierarchy and UCFGs: Begin: 2024-06-20T03:40:18.025451882Z, End: 2024-06-20T03:40:18.025973554Z, Duration: 00:00:00.000
Load type hierarchy: Begin: 2024-06-20T03:40:18.025474751Z, End: 2024-06-20T03:40:18.025725982Z, Duration: 00:00:00.000
Load UCFGs: Begin: 2024-06-20T03:40:18.025823829Z, End: 2024-06-20T03:40:18.025870997Z, Duration: 00:00:00.000
INFO: csharp security sensor peak memory: 109 MB
INFO: Sensor CSharpSecuritySensor [security] (done) | time=1ms
INFO: Sensor PhpSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5334, S5335, S5883, S6173, S6287, S6350
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /tmp/.scannerwork/ucfg2/php
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.000
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
INFO: No UCFGs have been included for analysis.
INFO: php security sensor: Time spent was 00:00:00.001
INFO: php security sensor: Begin: 2024-06-20T03:40:18.027078693Z, End: 2024-06-20T03:40:18.028094964Z, Duration: 00:00:00.001
Load type hierarchy and UCFGs: Begin: 2024-06-20T03:40:18.027340361Z, End: 2024-06-20T03:40:18.027756057Z, Duration: 00:00:00.000
Load type hierarchy: Begin: 2024-06-20T03:40:18.027370883Z, End: 2024-06-20T03:40:18.027537424Z, Duration: 00:00:00.000
Load UCFGs: Begin: 2024-06-20T03:40:18.027627147Z, End: 2024-06-20T03:40:18.027672623Z, Duration: 00:00:00.000
INFO: php security sensor peak memory: 109 MB
INFO: Sensor PhpSecuritySensor [security] (done) | time=1ms
INFO: Sensor PythonSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5147, S5334, S5496, S6287, S6350, S6639, S6680, S6776, S6839
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /tmp/.scannerwork/ucfg2/python
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.000
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
INFO: No UCFGs have been included for analysis.
INFO: python security sensor: Time spent was 00:00:00.000
INFO: python security sensor: Begin: 2024-06-20T03:40:18.028944425Z, End: 2024-06-20T03:40:18.029744552Z, Duration: 00:00:00.000
Load type hierarchy and UCFGs: Begin: 2024-06-20T03:40:18.029097776Z, End: 2024-06-20T03:40:18.029488530Z, Duration: 00:00:00.000
Load type hierarchy: Begin: 2024-06-20T03:40:18.029118525Z, End: 2024-06-20T03:40:18.029266081Z, Duration: 00:00:00.000
Load UCFGs: Begin: 2024-06-20T03:40:18.029360395Z, End: 2024-06-20T03:40:18.029404028Z, Duration: 00:00:00.000
INFO: python security sensor peak memory: 109 MB
INFO: Sensor PythonSecuritySensor [security] (done) | time=2ms
INFO: Sensor JsSecuritySensor [security]
INFO: Enabled taint analysis rules: S2083, S5696, S3649, S5144, S6350, S6105, S5131, S5334, S5883, S2631, S5147, S6287, S5146, S6096, S2076
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /tmp/.scannerwork/ucfg2/js
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.001
INFO: Load UCFGs: Starting
INFO: Reading UCFGs from: /tmp/.scannerwork/ucfg2/js
INFO: Load UCFGs: Time spent was 00:00:00.376
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.378
INFO: Analyzing 606 UCFGs to detect vulnerabilities.
INFO: Check cache: Starting
INFO: Load cache: Starting
INFO: Load cache: Time spent was 00:00:00.002
INFO: Compare cache: Starting
INFO: Cache loaded: SecuritySensorCache{ucfgsHashes.count=606, typeDefinitionsHashes.count=0}
INFO: No relevant changes detected, skipping analysis.
INFO: Compare cache: Time spent was 00:00:00.001
INFO: Check cache: Time spent was 00:00:00.004
INFO: js security sensor: Time spent was 00:00:00.384
INFO: js security sensor: Begin: 2024-06-20T03:40:18.030455085Z, End: 2024-06-20T03:40:18.414593114Z, Duration: 00:00:00.384
Load type hierarchy and UCFGs: Begin: 2024-06-20T03:40:18.030641979Z, End: 2024-06-20T03:40:18.409554429Z, Duration: 00:00:00.378
Load type hierarchy: Begin: 2024-06-20T03:40:18.030663275Z, End: 2024-06-20T03:40:18.032476943Z, Duration: 00:00:00.001
Load UCFGs: Begin: 2024-06-20T03:40:18.032584161Z, End: 2024-06-20T03:40:18.409346235Z, Duration: 00:00:00.376
Check cache: Begin: 2024-06-20T03:40:18.409656131Z, End: 2024-06-20T03:40:18.414273875Z, Duration: 00:00:00.004
Load cache: Begin: 2024-06-20T03:40:18.409682407Z, End: 2024-06-20T03:40:18.411944738Z, Duration: 00:00:00.002
Compare cache: Begin: 2024-06-20T03:40:18.412366198Z, End: 2024-06-20T03:40:18.414172098Z, Duration: 00:00:00.001
INFO: js security sensor peak memory: 112 MB
INFO: Sensor JsSecuritySensor [security] (done) | time=385ms
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=1ms
INFO: CPD Executor 7 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 59 files
INFO: CPD Executor CPD calculation finished (done) | time=43ms
INFO: SCM writing changed lines
INFO: SCM writing changed lines (done) | time=8ms
INFO: Analysis report generated in 189ms, dir size=261 KB
INFO: Analysis report compressed in 109ms, zip size=102 KB
INFO: Analysis report uploaded in 568ms
INFO: ------------- Check Quality Gate status
INFO: Waiting for the analysis report to be processed (max 300s)
INFO: QUALITY GATE STATUS: PASSED - View details on https://sonarcloud.io/dashboard?id=astrapay_cashin-admin-web&pullRequest=65
INFO: Time spent writing ucfgs 0ms
INFO: Analysis total time: 1:54.161 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 2:04.711s
INFO: Final Memory: 27M/108M
INFO: ------------------------------------------------------------------------