const webpack = require('./webpack.config');

module.exports = (configuration) => {
  configuration.set({
    browsers: ['PhantomJS'],
    singleRun: true,
    frameworks: ['mocha'],
    files: ['tests.js'],
    plugins: [
      'karma-mocha',
      'karma-chai',
      'karma-sinon',
      'karma-webpack',
      'karma-coverage',
      'karma-phantomjs-launcher',
      'karma-mocha-reporter',
    ],
    preprocessors: {
      'tests.js': 'webpack',
    },
    reporters: ['mocha', 'coverage'],
    webpack,
    webpackServer: {
      noInfo: true,
    },
    port: 9876,
    colors: true,
    logLevel: configuration.LOG_INFO,
    coverageReporter: {
      subdir: '.',
    },
  });
};

@@ -667,16 +667,87 @@
 r: '.',%0A
+      reporters: %5B%0A        %7B type: 'lcovonly', subdir: '.' %7D,%0A      %5D,%0A
     %7D,%0A 

Add lcov.info for codecov