text: /* Configuration file for karma */
  
  var webpackCfg = require('./webpack.config');
  
  module.exports = function(config) {
    config.set({
      basePath: '',
      browsers: [ 'PhantomJS' ],
      files: [
        'test/loadtests.js'
      ],
      port: 8080,
      captureTimeout: 60000,
      frameworks: [ 'mocha', 'chai' ],
      client: {
        mocha: {}
      },
      singleRun: true,
      reporters: [ 'mocha', 'coverage' ],
      preprocessors: {
        'test/loadtests.js': [ 'webpack', 'sourcemap' ]
      },
      webpack: webpackCfg,
      webpackServer: {
        noInfo: true
      },
      coverageReporter: {
        dir: 'coverage/',
        reporters: [
          { type: 'html' },
          { type: 'text' }
        ]
      }
    });
  };
  