Advertisement
Guest User

karma.conf.js

a guest
Sep 29th, 2014
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  16.             'app/scripts/*.js',
  17.             'app/scripts/**/*.js',
  18.  
  19.             'test/spec/**/*.js'
  20.         ],
  21.  
  22.         // list of files / patterns to exclude
  23.         exclude: [],
  24.  
  25.         // web server port
  26.         port: 9877,
  27.  
  28.         // cli runner port
  29.         runnerPort: 9102,
  30.  
  31.         // level of logging
  32.         // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
  33.         logLevel: config.LOG_INFO,
  34.  
  35.         // enable / disable watching file and executing tests whenever any file changes
  36.         autoWatch: false,
  37.  
  38.         // Start these browsers, currently available:
  39.         // - Chrome
  40.         // - ChromeCanary
  41.         // - Firefox
  42.         // - Opera
  43.         // - Safari (only Mac)
  44.         // - PhantomJS
  45.         // - IE (only Windows)
  46.         browsers: ['PhantomJS', 'Firefox', 'IE', 'Chrome'],
  47.  
  48.         // Continuous Integration mode
  49.         // if true, it capture browsers, run tests and exit
  50.         singleRun: false
  51.     });
  52. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement