Hi there, I used sonar through sonarcloud to put quality gates in place but sometimes the coverage comes out wrong.
I used this configuration for coverage path:
sonar.javascript.lcov.reportPaths=coverage/lcov.info
which looks like the correct path. However sonar tells me some new lines are not covered by tests while jest returns a 100% coverage on all the categories.
Hm, I just noticed that you used javascript tag but Typescript in title. Which language are you using at the end?
For TypeScript you need to use another property, sonar.typescript.lcov.reportPaths
Indeed it seems to fix my issue, thanks If I have a composite project using javascript and Typescript (we are migrating to TS). Is using sonar.typescript.lcov.reportPaths instead sonar.javascript.lcov.reportPaths going to show only ts coverage or also the js part that is covered ? Should I use both ?
— Edit —
I just checked, it looks like it takes js into account.
Thanks you for your help Elena everything looks fine now