module.exports = function(config) {
    config.set({
        basePath: '../../',

        files: [
            'web/js/vendor/angular.js',
            'web/js/vendor/angular-*.js',
            'test/lib/angular/angular-mocks.js',
            'web/js/vendor/jquery*.js',
            'web/js/**/*.js',
            'test/unit/**/*.js'
        ],

        autoWatch: false,

        singleRun: true,
        reporters: ['dots', 'junit'],
        browsers: ['PhantomJS', 'Firefox'],
        frameworks: ["jasmine"],

        junitReporter: {
            outputFile: 'app/build/logs/js_unit.xml',
            suite: 'unit'
        },

        reportSlowerThan: 500,
    });
};

@@ -389,16 +389,94 @@
 : true,%0A
+        browsers: %5B'PhantomJS', 'Firefox'%5D,%0A        frameworks: %5B%22jasmine%22%5D,%0A%0A
         
@@ -502,27 +502,40 @@
  'junit'
+, 'coverage'
 %5D,%0A
+%0A
         
 browsers
@@ -530,181 +530,471 @@
     
-browsers: %5B'PhantomJS', 'Firefox'%5D,%0A        frameworks: %5B%22jasmine%22%5D,%0A%0A        junitReporter: %7B%0A            outputFile: 'app/build/logs/js_unit.xml',%0A            suite: 'unit
+preprocessors: %7B%0A            // source files, that you wanna generate coverage for%0A            // do not include tests or libraries%0A            // (these files will be instrumented by Istanbul)%0A            'web/js/*.js': %5B'coverage'%5D%0A        %7D,%0A%0A        junitReporter: %7B%0A            outputFile: 'app/build/logs/js_unit.xml',%0A            suite: 'unit'%0A        %7D,%0A%0A        coverageReporter: %7B%0A            type : 'html',%0A            dir : 'app/build/logs/jscoverage/
 '%0A  

Add js coverage