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, and we get a bunch of TEST - *. Xml in the target / surefire-reports / directory.
Sonar displays the results of code coverage, but does not show the number of tests that passed / failed or even completed.
How can I say that sonar should use confidence reports? I thought, setting this property, he would consume it, but without love:
sonar.surefire.reportsPath=target/surefire-reports
Here is my project properties file:
# project metadata (required) sonar.projectKey=pure.cloud.browser.app sonar.projectName=Pure Cloud Browser App sonar.projectVersion=1.0
Thank you, Fabrizio, for recommending me the following link in my previous question: https://github.com/SonarSource/sonar-examples/tree/master/projects/languages/javascript/javascript-sonar-runner-JsTestDriver , but I cannot find a way to tell Sonar to somehow show the unit test results (number of tests, number of failures, etc.) that are stored in the surefire-reports directory.
Any ideas?
source share