Sonarcloud is showing 0 code coverage for Vue javascript project running through github actions

  • ALM used - GitHub
  • CI system used - AWS
  • Scanner command used when applicable (private details masked)
  • Languages of the repository - JavaScript VueJS

My code coverage always shows 0.0% even though I have unit tests running for the project.

I have setup sonarcloud for 3 repos the other 2 repos are running on NodeJs and this is the frontend application running on VueJs.

The only difference for the project setup is test environment set to “jsdom” for vuejs project and for the other 2 projects its node.

testEnvironment : ‘jsdom’,

Hello @Nikhila22 ,

Welcome to the community!

Can you share the configuration of your analysis (stripped of private data)? What kind of properties do you pass?

Best,
Marcin

These are the properties that are set

sonar.projectName=

sonar.projectKey=

sonar.javascript.lcov.reportPaths=coverage/lcov.info

sonar.sources=src

sonar.organization=

sonar.tests=tests