text: module.exports = function(config) {
    'use strict';
  
    config.set({
      // enable / disable watching file and executing tests whenever any file changes
      autoWatch: true,
  
      // base path, that will be used to resolve files and exclude
      basePath: '../',
  
      // testing framework to use (jasmine/mocha/qunit/...)
      frameworks: ['jasmine'],
  
      // list of files / patterns to load in the browser
      files: [
        // angular
        'examples/bower_components/angular/angular.js',
        'examples/bower_components/angular-mocks/angular-mocks.js',
        // jasmine jquery helper
        'test/vendor/jquery-1.11.1.js',
        'test/vendor/jasmine-jquery.js',
        // app
        'src/**/*.js',
        // tests
        // 'test/mock/**/*.js',
        'test/spec/angular-opensensemap.spec.js',
        // fixtures
        {pattern: 'test/mock/*.json', watched: true, served: true, included: false}
      ],
  
      // list of files / patterns to exclude
      exclude: [],
  
      // web server port
      port: 8080,
  
      // Start these browsers, currently available:
      // - Chrome
      // - ChromeCanary
      // - Firefox
      // - Opera
      // - Safari (only Mac)
      // - PhantomJS
      // - IE (only Windows)
      browsers: [
        'PhantomJS'
      ],
  
      reporters: ['coverage', 'spec'],
  
      preprocessors: {
        // source files, that you wanna generate coverage for
        // do not include tests or libraries
        // (these files will be instrumented by Istanbul)
        'src/*.js': ['coverage']
      },
  
      // optionally, configure the reporter
      coverageReporter: {
        reporters : [
          {
            type : 'lcov',
            dir : 'test/coverage/',
            subdir: '.',
            file : 'lcov.info'
          },
          {
            type: 'text',
            dir: 'test/coverage/',
            subdir: '.'
          }
        ]
      },
  
      // Which plugins to enable
      plugins: [
        'karma-phantomjs-launcher',
        'karma-jasmine',
        'karma-coverage',
        'karma-spec-reporter'
      ],
  
      // Continuous Integration mode
      // if true, it capture browsers, run tests and exit
      singleRun: false,
  
      colors: true,
  
      // level of logging
      // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
      logLevel: config.LOG_INFO,
  
      // Uncomment the following lines if you are using grunt's server to run the tests
      // proxies: {
      //   '/': 'http://localhost:9000/'
      // },
      // URL root prevent conflicts with the site root
      // urlRoot: '_karma_'
    });
  };
  