title: How to tell Sonar to use my surefire reports for unit test results
body: <p>We have a Jenkins job that contains a bunch of javascript files. We build our project via grunt, and at the end of the build we run JSCover to run our unit tests and collect code coverage. It all works. We get a nice LCOV file, and we get a bunch of TEST-*.xml in the target/surefire-reports/ directory.</p>
  
  <p>Sonar displays the code coverage results, but it doesn't show the number of tests that passed/failed or even executed.</p>
  
  <p>How do I tell sonar to use the surefire reports?
  I thought by setting this property, it would consume it, but no love:</p>
  
  <pre><code>sonar.surefire.reportsPath=target/surefire-reports
  </code></pre>
  
  <p>Here is my project properties file:</p>
  
  <pre><code># project metadata (required)
  sonar.projectKey=pure.cloud.browser.app
  sonar.projectName=Pure Cloud Browser App
  sonar.projectVersion=1.0
  # path to source directories (required)
  sonar.sources=src
  sonar.exclusions=js/lib/**,js/test/lib/**,js/test/tools/**
  # The value of the property must be the key of the language.
  sonar.language=js
  
  # Advanced parameters
  sonar.surefire.reportsPath=target/surefire-reports
  sonar.javascript.lcov.reportPath=target/test-coverage/jscover.lcov
  sonar.dynamicAnalysis=reuseReports
  </code></pre>
  
  <p>Thank you, Fabrice, for recommending me the following link in my previous question:
  <a href="https://github.com/SonarSource/sonar-examples/tree/master/projects/languages/javascript/javascript-sonar-runner-JsTestDriver" rel="noreferrer">https://github.com/SonarSource/sonar-examples/tree/master/projects/languages/javascript/javascript-sonar-runner-JsTestDriver</a> but I can't find a way to tell Sonar to somehow display the unit test results (number of tests, number of failures, etc) that are stored in the surefire-reports directory.</p>
  
  <p>Any ideas?</p>