github.com/matm/etcd@v0.3.1-0.20140328024009-5b4a473f1453/mod/dashboard/karma.conf.js (about)

     1  // Karma configuration
     2  // http://karma-runner.github.io/0.10/config/configuration-file.html
     3  
     4  module.exports = function(config) {
     5    config.set({
     6      // base path, that will be used to resolve files and exclude
     7      basePath: '',
     8  
     9      // testing framework to use (jasmine/mocha/qunit/...)
    10      frameworks: ['jasmine'],
    11  
    12      // list of files / patterns to load in the browser
    13      files: [
    14        'app/bower_components/angular/angular.js',
    15        'app/bower_components/angular-mocks/angular-mocks.js',
    16        'app/scripts/*.js',
    17        'app/scripts/**/*.js',
    18        'test/mock/**/*.js',
    19        'test/spec/**/*.js'
    20      ],
    21  
    22      // list of files / patterns to exclude
    23      exclude: [],
    24  
    25      // web server port
    26      port: 8080,
    27  
    28      // level of logging
    29      // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
    30      logLevel: config.LOG_INFO,
    31  
    32  
    33      // enable / disable watching file and executing tests whenever any file changes
    34      autoWatch: false,
    35  
    36  
    37      // Start these browsers, currently available:
    38      // - Chrome
    39      // - ChromeCanary
    40      // - Firefox
    41      // - Opera
    42      // - Safari (only Mac)
    43      // - PhantomJS
    44      // - IE (only Windows)
    45      browsers: ['Chrome'],
    46  
    47  
    48      // Continuous Integration mode
    49      // if true, it capture browsers, run tests and exit
    50      singleRun: false
    51    });
    52  };