Coverage displays 0% even if it's not the case

  • CI system used : Gitlab CI
  • Languages of the repository : Typescript

Hi!

I’m having some problems since couple of months ago to display correctly the test coverage… Indeed, everything seems to be setup correctly, the job executes correctly on my CI, loading the correct lcov file, but I still have this 0% displayed in SonarCloud.

Here is the messages I got when executing the command sonnar-scanner:

[49](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L49)INFO: Project root configuration file: /builds/optimetriks/spabackend/fieldpro-api/sonar-project.properties

[50](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L50)INFO: SonarScanner 4.6.2.2472

[51](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L51)INFO: Java 11.0.12 Alpine (64-bit)

[52](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L52)INFO: Linux 5.4.109+ amd64

[53](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L53)INFO: User cache: /builds/optimetriks/spabackend/fieldpro-api/.sonar/cache

[54](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L54)INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties

[55](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L55)INFO: Project root configuration file: /builds/optimetriks/spabackend/fieldpro-api/sonar-project.properties

[56](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L56)INFO: Analyzing on SonarQube server 9.0.1

[57](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L57)INFO: Default locale: "en_US", source code encoding: "UTF-8"

[58](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L58)INFO: Load global settings

[59](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L59)INFO: Load global settings (done) | time=712ms

[60](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L60)INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu

[61](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L61)INFO: User cache: /builds/optimetriks/spabackend/fieldpro-api/.sonar/cache

[62](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L62)INFO: Load/download plugins

[63](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L63)INFO: Load plugins index

[64](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L64)INFO: Load plugins index (done) | time=164ms

[65](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L65)INFO: Load/download plugins (done) | time=813ms

[66](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L66)INFO: Loaded core extensions: developer-scanner

[67](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L67)INFO: Found an active CI vendor: 'Gitlab CI'

[68](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L68)INFO: Load project settings for component key: 'optimetriks_fieldpro-api'

[69](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L69)INFO: Load project settings for component key: 'optimetriks_fieldpro-api' (done) | time=130ms

[70](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L70)INFO: Process project properties

[71](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L71)INFO: Execute project builders

[72](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L72)INFO: Execute project builders (done) | time=3ms

[73](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L73)INFO: Project key: optimetriks_fieldpro-api

[74](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L74)INFO: Base dir: /builds/optimetriks/spabackend/fieldpro-api

[75](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L75)INFO: Working dir: /builds/optimetriks/spabackend/fieldpro-api/.scannerwork

[76](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L76)INFO: Load project branches

[77](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L77)INFO: Load project branches (done) | time=124ms

[78](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L78)INFO: Check ALM binding of project 'optimetriks_fieldpro-api'

[79](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L79)INFO: Detected project binding: BOUND

[80](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L80)INFO: Check ALM binding of project 'optimetriks_fieldpro-api' (done) | time=112ms

[81](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L81)INFO: Load project pull requests

[82](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L82)INFO: Load project pull requests (done) | time=121ms

[83](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L83)INFO: Load branch configuration

[84](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L84)INFO: Auto-configuring branch v3

[85](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L85)INFO: Load branch configuration (done) | time=6ms

[86](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L86)INFO: Load quality profiles

[87](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L87)INFO: Load quality profiles (done) | time=192ms

[88](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L88)INFO: Load active rules

[89](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L89)INFO: Load active rules (done) | time=4421ms

[90](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L90)INFO: Organization key: optimetriks

[91](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L91)INFO: Branch name: v3, type: long-lived

[92](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L92)INFO: Load project repositories

[93](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L93)INFO: Load project repositories (done) | time=162ms

[94](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L94)INFO: Indexing files...

[95](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L95)INFO: Project configuration:

[96](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L96)INFO: Excluded sources: **/build-wrapper-dump.json, **/*.test.ts, **/*.test.ts

[97](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L97)INFO: Included tests: **/*.test.ts

[98](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L98)INFO: 574 files indexed

[99](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L99)INFO: 574 files ignored because of inclusion/exclusion patterns

[100](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L100)INFO: 0 files ignored because of scm ignore settings

[101](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L101)INFO: Quality profile for json: SonarQube Way

[102](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L102)INFO: Quality profile for ts: Sonar way

[103](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L103)INFO: ------------- Run sensors on module optimetriks_fieldpro-api

[104](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L104)INFO: Load metrics repository

[105](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L105)INFO: Load metrics repository (done) | time=148ms

[106](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L106)INFO: Sensor IaC CloudFormation Sensor [iac]

[107](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L107)INFO: 0 source files to be analyzed

[108](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L108)INFO: 0/0 source files have been analyzed

[109](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L109)INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=53ms

[110](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L110)INFO: Sensor C# Project Type Information [csharp]

[111](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L111)INFO: Sensor C# Project Type Information [csharp] (done) | time=7ms

[112](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L112)INFO: Sensor C# Analysis Log [csharp]

[113](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L113)INFO: Sensor C# Analysis Log [csharp] (done) | time=31ms

[114](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L114)INFO: Sensor C# Properties [csharp]

[115](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L115)INFO: Sensor C# Properties [csharp] (done) | time=0ms

[116](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L116)INFO: Sensor HTML [web]

[117](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L117)INFO: Sensor HTML [web] (done) | time=13ms

[118](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L118)INFO: Sensor VB.NET Project Type Information [vbnet]

[119](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L119)INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms

[120](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L120)INFO: Sensor VB.NET Analysis Log [vbnet]

[121](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L121)INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=31ms

[122](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L122)INFO: Sensor VB.NET Properties [vbnet]

[123](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L123)INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms

[124](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L124)INFO: Sensor JaCoCo XML Report Importer [jacoco]

[125](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L125)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

[126](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L126)INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer

[127](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L127)INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=13ms

[128](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L128)INFO: Sensor TypeScript analysis [javascript]

[129](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L129)INFO: Deploying custom rules bundle jar:file:/builds/optimetriks/spabackend/fieldpro-api/.sonar/cache/54f02b9cc8c8e36a9aaad1b63c7a20a5/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to /builds/optimetriks/spabackend/fieldpro-api/.scannerwork/.sonartmp/eslint-bridge-bundle/package/custom-rules16668079248300071215

[130](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L130)INFO: Using /builds/optimetriks/spabackend/fieldpro-api/tsconfig.json from sonar.typescript.tsconfigPath property

[131](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L131)INFO: Analyzing 555 files using tsconfig: /builds/optimetriks/spabackend/fieldpro-api/tsconfig.json

[132](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L132)INFO: 555 source files to be analyzed

[133](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L133)INFO: 0/555 files analyzed, current file: src/web/notifications/POST_RunNotification.ts

[134](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L134)INFO: 30/555 files analyzed, current file: src/core/postgres/SmalaPostgres.ts

[135](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L135)INFO: 91/555 files analyzed, current file: src/core/gitlab.ts

[136](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L136)INFO: 167/555 files analyzed, current file: src/web/dashboards/db.ts

[137](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L137)INFO: 224/555 files analyzed, current file: src/web/documents/GET_GetDocuments.ts

[138](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L138)INFO: 313/555 files analyzed, current file: src/server/index.ts

[139](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L139)INFO: 397/555 files analyzed, current file: src/maintenance/migration/v2tov3/formatUploadsTable.ts

[140](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L140)INFO: 503/555 files analyzed, current file: src/web/activity_reports/activity_reports.test.ts

[141](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L141)INFO: 555/555 source files have been analyzed

[142](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L142)INFO: Sensor TypeScript analysis [javascript] (done) | time=93100ms

[143](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L143)INFO: Sensor CSS Rules [javascript]

[144](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L144)INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.

[145](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L145)INFO: Sensor CSS Rules [javascript] (done) | time=3ms

[146](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L146)INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]

[147](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L147)INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=4ms

[148](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L148)INFO: Sensor Serverless configuration file sensor [security]

[149](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L149)INFO: 0 Serverless function entries were found in the project

[150](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L150)INFO: 0 Serverless function handlers were kept as entrypoints

[151](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L151)INFO: Sensor Serverless configuration file sensor [security] (done) | time=15ms

[152](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L152)INFO: Sensor AWS SAM template file sensor [security]

[153](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L153)INFO: Sensor AWS SAM template file sensor [security] (done) | time=2ms

[154](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L154)INFO: Sensor Generic Test Executions Report

[155](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L155)INFO: Parsing /builds/optimetriks/spabackend/fieldpro-api/test-report.xml

[156](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L156)INFO: Imported test execution data for 110 files

[157](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L157)INFO: Sensor Generic Test Executions Report (done) | time=292ms

[158](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L158)INFO: Sensor JavaSecuritySensor [security]

[159](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L159)INFO: Reading type hierarchy from: /builds/optimetriks/spabackend/fieldpro-api/.scannerwork/ucfg2/java

[160](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L160)INFO: Read 0 type definitions

[161](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L161)INFO: Reading UCFGs from: /builds/optimetriks/spabackend/fieldpro-api/.scannerwork/ucfg2/java

[162](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L162)INFO: No UCFGs have been included for analysis.

[163](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L163)INFO: Sensor JavaSecuritySensor [security] (done) | time=15ms

[164](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L164)INFO: Sensor CSharpSecuritySensor [security]

[165](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L165)INFO: Reading type hierarchy from: /builds/optimetriks/spabackend/fieldpro-api/ucfg_cs2

[166](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L166)INFO: Read 0 type definitions

[167](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L167)INFO: Reading UCFGs from: /builds/optimetriks/spabackend/fieldpro-api/ucfg_cs2

[168](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L168)INFO: No UCFGs have been included for analysis.

[169](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L169)INFO: Sensor CSharpSecuritySensor [security] (done) | time=5ms

[170](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L170)INFO: Sensor PhpSecuritySensor [security]

[171](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L171)INFO: Reading type hierarchy from: /builds/optimetriks/spabackend/fieldpro-api/.scannerwork/ucfg2/php

[172](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L172)INFO: Read 0 type definitions

[173](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L173)INFO: Reading UCFGs from: /builds/optimetriks/spabackend/fieldpro-api/.scannerwork/ucfg2/php

[174](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L174)INFO: No UCFGs have been included for analysis.

[175](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L175)INFO: Sensor PhpSecuritySensor [security] (done) | time=3ms

[176](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L176)INFO: Sensor PythonSecuritySensor [security]

[177](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L177)INFO: Reading type hierarchy from: /builds/optimetriks/spabackend/fieldpro-api/.scannerwork/ucfg2/python

[178](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L178)INFO: Read 0 type definitions

[179](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L179)INFO: Reading UCFGs from: /builds/optimetriks/spabackend/fieldpro-api/.scannerwork/ucfg2/python

[180](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L180)INFO: No UCFGs have been included for analysis.

[181](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L181)INFO: Sensor PythonSecuritySensor [security] (done) | time=4ms

[182](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L182)INFO: Sensor JsSecuritySensor [security]

[183](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L183)INFO: Reading type hierarchy from: /builds/optimetriks/spabackend/fieldpro-api/.scannerwork/ucfg2/js

[184](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L184)INFO: Read 0 type definitions

[185](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L185)INFO: Reading UCFGs from: /builds/optimetriks/spabackend/fieldpro-api/.scannerwork/ucfg2/js

[186](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L186)INFO: 15:41:56.480993 Building Runtime Type propagation graph

[187](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L187)INFO: 15:41:56.86637 Running Tarjan on 24422 nodes

[188](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L188)INFO: 15:41:56.947938 Tarjan found 24420 components

[189](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L189)INFO: 15:41:57.124565 Variable type analysis: done

[190](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L190)INFO: 15:41:57.128616 Building Runtime Type propagation graph

[191](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L191)INFO: 15:41:57.462253 Running Tarjan on 24422 nodes

[192](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L192)INFO: 15:41:57.513768 Tarjan found 24420 components

[193](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L193)INFO: 15:41:57.631845 Variable type analysis: done

[194](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L194)INFO: Analyzing 3319 ucfgs to detect vulnerabilities.

[195](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L195)INFO: Taint analysis starting. Entrypoints: 446

[196](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L196)INFO: Running symbolic analysis for 'JS'

[197](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L197)INFO: Taint analysis: done.

[198](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L198)INFO: Sensor JsSecuritySensor [security] (done) | time=14171ms

[199](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L199)INFO: ------------- Run sensors on project

[200](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L200)INFO: Sensor Zero Coverage Sensor

[201](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L201)INFO: Sensor Zero Coverage Sensor (done) | time=151ms

[202](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L202)INFO: SCM Publisher SCM provider for this project is: git

[203](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L203)INFO: SCM Publisher 10 source files to be analyzed

[204](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L204)INFO: SCM Publisher 10/10 source files have been analyzed (done) | time=1403ms

[205](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L205)INFO: CPD Executor 46 files had no CPD blocks

[206](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L206)INFO: CPD Executor Calculating CPD for 399 files

[207](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L207)INFO: CPD Executor CPD calculation finished (done) | time=418ms

[208](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L208)INFO: Analysis report generated in 717ms, dir size=4 MB

[209](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L209)INFO: Analysis report compressed in 1849ms, zip size=2 MB

[210](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L210)INFO: Analysis report uploaded in 964ms

[211](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L211)INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=optimetriks_fieldpro-api&branch=v3

[212](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L212)INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report

[213](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L213)INFO: More about the report processing at https://sonarcloud.io/api/ce/task?id=AX20dWpZCLgvz1Uh0KLn

[214](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L214)INFO: Analysis total time: 2:14.715 s

[215](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L215)INFO: ------------------------------------------------------------------------

[216](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L216)INFO: EXECUTION SUCCESS

[217](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L217)INFO: ------------------------------------------------------------------------

[218](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L218)INFO: Total time: 2:21.433s

[219](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L219)INFO: Final Memory: 104M/263M

[220](https://gitlab.com/optimetriks/spabackend/fieldpro-api/-/jobs/1878604699#L220)INFO: ------------------------------------------------------------------------

Here is my config in GitlabCI:

...
static-analysis:
  stage: static-analysis
  image:
    name: sonarsource/sonar-scanner-cli:latest
    entrypoint: [""]
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - .sonar/cache
  script:
    - ls -al coverage
    - sonar-scanner
  only:
    - v3
...

And my sonar-project.properties:

sonar.projectKey=optimetriks_fieldpro-api
sonar.organization=optimetriks

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=service-web-api
#sonar.projectVersion=1.0
 
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=src
sonar.tests=src
 
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
sonar.typescript.file.suffixes=.ts
sonar.typescript.lcov.reportPaths=coverage/lcov.info
sonar.testExecutionReportPaths=test-report.xml
sonar.exclusions=**/*.test.ts
sonar.test.inclusions=**/*.test.ts
sonar.typescript.tsconfigPath=tsconfig.json

thanks in advance !

Hey there.

Even for Typescript, you need to use sonar.javascript.lcov.reportPaths rather than sonar.typescript.lcov.reportPaths. Make sure to use the parameters listed in the documentation for importing coverage

1 Like

Thanks! Yes indeed, that was the issue. Something that has been updated then, before it was working. All good then!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.