OLD | NEW |
(Empty) | |
| 1 // Karma configuration |
| 2 // Generated on Mon Jul 21 2014 15:27:46 GMT-0700 (PDT) |
| 3 |
| 4 module.exports = function(config) { |
| 5 config.set({ |
| 6 |
| 7 // base path that will be used to resolve all patterns (eg. files, exclude) |
| 8 basePath: '.', |
| 9 |
| 10 // frameworks to use |
| 11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 12 frameworks: ['mocha'], |
| 13 |
| 14 // mocha setup |
| 15 client: { |
| 16 mocha: { |
| 17 ui: 'bdd' |
| 18 } |
| 19 }, |
| 20 |
| 21 // list of files / patterns to load in the browser |
| 22 files: [ |
| 23 {pattern: 'bower_components/chai/chai.js', watched: true, included: true,
served: true}, |
| 24 {pattern: 'bower_components/sugar/release/sugar-full.development.js', watc
hed: true, included: true, served: true}, |
| 25 {pattern: 'bower_components/platform/platform.js', watched: true, included
: true, served: true}, |
| 26 {pattern: 'bower_components/polymer/polymer.html', watched: true, included
: true, served: true}, |
| 27 {pattern: 'bower_components/**/*.{js,html,css,map}', watched: true, includ
ed: false, served: true}, |
| 28 {pattern: 'node_modules/mocha/mocha.js', watched: true, included: true, se
rved: true}, |
| 29 {pattern: 'polymer-load-warning.html', watched: true, included: false, ser
ved: true}, |
| 30 {pattern: 'model/**/*[^tests].html', watched: true, included: false, serve
d: true}, |
| 31 {pattern: 'ui/**/*[^tests].{js,html,css}', watched: true, included: false,
served: true}, |
| 32 'ui/test/*', |
| 33 ], |
| 34 |
| 35 // list of files to exclude |
| 36 exclude: [ |
| 37 'scripts/*tests.js', |
| 38 ], |
| 39 |
| 40 // preprocess matching files before serving them to the browser |
| 41 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor |
| 42 preprocessors: { |
| 43 }, |
| 44 |
| 45 // test results reporter to use |
| 46 // possible values: 'dots', 'progress' |
| 47 // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 48 reporters: ['progress'], |
| 49 |
| 50 // web server port |
| 51 port: 9876, |
| 52 |
| 53 // enable / disable colors in the output (reporters and logs) |
| 54 colors: true, |
| 55 |
| 56 // level of logging |
| 57 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR
N || config.LOG_INFO || config.LOG_DEBUG |
| 58 logLevel: config.LOG_ERROR, |
| 59 |
| 60 // enable / disable watching file and executing tests whenever any file chan
ges |
| 61 autoWatch: true, |
| 62 |
| 63 // start these browsers |
| 64 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc
her |
| 65 browsers: ['Chrome'], |
| 66 |
| 67 // Continuous Integration mode |
| 68 // if true, Karma captures browsers, runs the tests and exits |
| 69 singleRun: false, |
| 70 |
| 71 plugins: [ |
| 72 'karma-mocha', |
| 73 'karma-chrome-launcher' |
| 74 ] |
| 75 }); |
| 76 }; |
OLD | NEW |