We have a Jenkins work that contains a bunch of javascript files. We build our project through grunts, and at the end of the build we run JSCover to run our unit tests and collect the code. Everything works. We get a good LCOV file.
Now we want to upload the LCOV file to Sonar, and I'm not sure how to do it. We build our project from Jenkins as a free style project.
I tried playing with various project properties for sonar, but I don't like:
# project metadata (required) sonar.projectKey=my.project sonar.projectName=My Project sonar.projectVersion=1.0
I suspect the problem is with the Advanced Options, but I don’t know how to tell Sonar: “Please use my LCOV file to cover the code.”
source share