galexandre / sonar-cobertura

Cobertura plugin for SonarQube
GNU General Public License v3.0
30 stars 26 forks source link

Publish Cobertura coverage reports to SonarQube for typescript project #31

Open Blessie7 opened 4 years ago

Blessie7 commented 4 years ago

Hi, I have been trying to publish cobertura coverage report for a typescript project to SonarQube. However, SonarQube is not picking up the cobertura report. Below is the configuration I have used in sonar-project.js file. 'sonar.dynamicAnalysis' : 'reuseReports', 'sonar.cobertura.reportPath' : '' SonarQube displays the coverage as 0. If I configure lcov report path, it works fine. Does sonar cobertura plugin support publishing cobertura coverage report for typescript project?

galexandre commented 4 years ago

Hi @Blessie7,

I am not a typescript specialist, however I will try to help you. As far as I can see you didn't specify a path of the report, so my question is where is your coverage file generated is located?

Regards,

galexandre