Integrating Karma 0.8 tests in Maven with Sonar(Cube) test coverage

NOTE: this blog post was written for version 0.8 of the Karma test runner.
An updated blog post for the new Karma 0.10 can be found here.

For my current project we are using Maven to build our AngularJS application.
Furthermore we use Sonar (recently renamed to SonarCube) to monitor our code standards / best practices and unit test coverage.

In this blog post we describe how to integrate the Karma (Testacular) test runner with Maven and how to add your AngularJS (or any JavaScript) application to SonarQube.
Continue reading