github.com/justinjmoses/evergreen@v0.0.0-20170530173719-1d50e381ff0d/public/static/js/tests/conf/karma.conf.js (about)

     1  // Karma configuration
     2  // Generated on Tue Sep 10 2013 18:10:11 GMT-0400 (EDT)
     3  
     4  // Install karma via npm install karma -g to run
     5  
     6  module.exports = function(config) {
     7    config.set({
     8  
     9      // base path, that will be used to resolve files and exclude
    10      basePath: '../../',
    11  
    12  
    13      // frameworks to use
    14      frameworks: ['jasmine'],
    15  
    16  
    17      // list of files / patterns to load in the browser
    18      files: [
    19        'http://code.angularjs.org/1.0.7/angular.min.js',
    20        'http://code.angularjs.org/1.0.7/angular-mocks.js',
    21        'angular-md5.js',
    22        'filters/*',
    23        'directives/*',
    24        'mci_module.js',
    25        'build.js',
    26        'tests/*.js',
    27      ],
    28  
    29  
    30      // list of files to exclude
    31      exclude: [
    32        
    33      ],
    34  
    35  
    36      // test results reporter to use
    37      // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
    38      reporters: ['progress'],
    39  
    40  
    41      // web server port
    42      port: 9876,
    43  
    44  
    45      // enable / disable colors in the output (reporters and logs)
    46      colors: true,
    47  
    48  
    49      // level of logging
    50      // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
    51      logLevel: config.LOG_INFO,
    52  
    53  
    54      // enable / disable watching file and executing tests whenever any file changes
    55      autoWatch: true,
    56  
    57  
    58      // Start these browsers, currently available:
    59      // - Chrome
    60      // - ChromeCanary
    61      // - Firefox
    62      // - Opera
    63      // - Safari (only Mac)
    64      // - PhantomJS
    65      // - IE (only Windows)
    66      browsers: ['Chrome', 'Firefox', 'Safari'], // Need to do npm install karma-safari-runner -g for safari
    67  
    68  
    69      // If browser does not capture in given timeout [ms], kill it
    70      captureTimeout: 60000,
    71  
    72  
    73      // Continuous Integration mode
    74      // if true, it capture browsers, run tests and exit
    75      singleRun: false
    76    });
    77  };