Add coverage report to sonarqube
The sonarqube property sonar.javascript.lcov.reportPaths
has to be set to the path of the lcov.info file generated by nyc this file should be in LCOV format.
-
Add path to sonarqube or add it to sonarscan command -
Add line in ci to generate coverage file before running sonarscan