title: Jenkins/SonarQube unit testing code coverage for JavaScript
body: <p>We set up Jenkins/SonarQube to fail a build if a developer commits new code that has less than 70% of unit testing code coverage for Java. We would love to do the same for JavaScript. This turned out to be problematic.</p>
  
  <p>To get SonarQube to analyze JavaScript unit tests you have to use an option like this (taken from Jenkins context):</p>
  
  <pre><code>sonar.javascript.jstestdriver.reportsPath=${WORKSPACE}/my-project/generated-reports/jstd
  </code></pre>
  
  <p>The problem is that using JSTestDriver (<a href="https://code.google.com/p/js-test-driver/" rel="nofollow">https://code.google.com/p/js-test-driver/</a>) is out of the question because it's old and not compatible with modern JavaScript frameworks like AngularJS or ReactJS.</p>
  
  <p>Question: has anybody encountered and solved this problem?</p>