title: How to get karma javascript junit xml reports into sonar
body: <p>Is there a karma reporter which can be used to generate a <code>results.xml</code> file which is compatible with the sonar Generic Test Coverage plugin? Or alternatively a parser for the junit file which is output by <code>karma-junit-reporter</code> and which will work with the generic plugin?</p>
  
  <p>I am using SonarQube 5.3 and Karma / Jasmine</p>
  
  <p>I want to import the junit reports that come from karma into SonarQube but cannot see a way to do this easily. Something like <a href="https://www.npmjs.com/package/mocha-sonar-generic-test-coverage" rel="noreferrer">https://www.npmjs.com/package/mocha-sonar-generic-test-coverage</a> for karma</p>
  
  <p>FYI I have seen 
  <code>karma-junit-sonarqube-reporter</code> (<a href="https://www.npmjs.com/package/karma-junit-sonarqube-reporter" rel="noreferrer">https://www.npmjs.com/package/karma-junit-sonarqube-reporter</a>) but that seems to expect the name of the test to match the path to the file which is too restrictive for me. 
  <code>karma-sonarqube-unit-reporter</code> seems to be unfinished
  <code>grunt-karma-sonar</code> seems to rely on <code>jstestdriver</code> which is deprecated</p>