anjardanis
(Anjar Daniswara)
July 8, 2021, 5:38am
1
ALM used (GitHub)
CI system used (Github Actions)
Scanner command used when applicable (standar command github action)
Languages of the repository: Typescript
No Error but didnt show up codecoverage
sonar-project.properties
sonar.projectKey=<key>
sonar.organization=<org<
sonar.sourceEncoding=UTF-8
sonar.host.url=https://sonarcloud.io
sonar.sources=src/app
sonar.tests=src/tests
sonar.language=typescript
sonar.javascript.lcov.reportPaths=coverage/lcov.info
one of repo use this config can show up codecoverage but in this repo cannot see codecoverage
npm install
2.npm run test using mocha that generated lcov.info in my local there is code coverage
why this is happen ?
Yassin
(Yassin Kammoun)
July 13, 2021, 1:07pm
2
Hello Anjar,
Thank you for your message, and welcome to the SonarSource community!
In order to help you, would you mind sharing the scanner logs with the debug details? There might be some clues there as why SonarCloud doesn’t show your code coverage.
Regards,
Yassin
anjardanis
(Anjar Daniswara)
July 14, 2021, 11:52am
3
Hi @Yassin ,
I already find the solution because inside lcov.info there is a path directory github actions,
therefore sonarcloud cannot read that, so i erase path directory before sonarcloud analyze command
Thank you,
Regards,
Anjar Daniswara
1 Like
system
(system)
Closed
July 21, 2021, 11:53am
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.