Python and Javascript Code Coverage 0%

Must-share information (formatted with Markdown):
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

  • SonarQube 7.9.1 LTS
  • Sonnarscanner
  • Jenkins
  • GitLab
  • Running all of these on Linux 18.04 LTS

what are you trying to achieve

  • I am want to show the percentage number on test coverage in sonarqube when i run build from Jenkins (Be it a python project or javascript project since those are the languages used in my gitlab repository)

  • I want to show test result on a report file (be it in lcov format or html format)

what have you tried so far to achieve this

  • installed cobertura plugin on jenkins
  • tried on jenkins
  • set paths in my project repositories’ .properties file to either coverage directories or result directories (as shown in the Sonarqube documentation)
  • added a ‘test’ step after my ‘sonarqube’ step on my jenkinsfiles

Hi Thierry,

Could you provide .properties file and analysis logs?