Chromium Code Reviews| 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 | |
|
ojan
2014/07/23 01:36:57
Why the double newlines?
| |
| 11 // frameworks to use | |
|
michaelpg
2014/07/23 02:12:01
This is how it was formatted when it was generated
michaelpg
2014/07/28 20:35:04
Done.
| |
| 12 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter | |
| 13 frameworks: ['mocha'], | |
| 14 | |
| 15 | |
| 16 // mocha setup | |
| 17 client: { | |
| 18 mocha: { | |
| 19 ui: 'tdd' | |
| 20 } | |
| 21 }, | |
| 22 | |
| 23 | |
| 24 // list of files / patterns to load in the browser | |
| 25 files: [ | |
| 26 {pattern: 'bower_components/**/*.{js,html,css,map}', watched: true, includ ed: false, served: true}, | |
| 27 {pattern: 'node_modules/**/*.{js,html,css}', watched: true, included: fals e, served: true}, | |
| 28 {pattern: 'polymer-load-warning.html', watched: true, included: false, ser ved: true}, | |
| 29 {pattern: 'ui/**/*[^tests].{js,html,css}', watched: true, included: false, served: true}, | |
|
ojan
2014/07/23 01:36:57
There's also a model directory now.
michaelpg
2014/07/28 20:35:04
Acknowledged.
| |
| 30 'test/dependencies.html', | |
| 31 'ui/test/*', | |
| 32 'test/karmaunittests.html', | |
| 33 ], | |
| 34 | |
| 35 | |
| 36 // list of files to exclude | |
| 37 exclude: [ | |
| 38 'scripts/*tests.js', | |
| 39 ], | |
| 40 | |
| 41 | |
| 42 // preprocess matching files before serving them to the browser | |
| 43 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces sor | |
| 44 preprocessors: { | |
| 45 }, | |
| 46 | |
| 47 | |
| 48 // test results reporter to use | |
| 49 // possible values: 'dots', 'progress' | |
| 50 // available reporters: https://npmjs.org/browse/keyword/karma-reporter | |
| 51 reporters: ['progress'], | |
| 52 | |
| 53 | |
| 54 // web server port | |
| 55 port: 9876, | |
|
michaelpg
2014/07/22 22:52:35
this is the default. would it be safer to pick a m
| |
| 56 | |
| 57 | |
| 58 // enable / disable colors in the output (reporters and logs) | |
| 59 colors: true, | |
| 60 | |
| 61 | |
| 62 // level of logging | |
| 63 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR N || config.LOG_INFO || config.LOG_DEBUG | |
| 64 logLevel: config.LOG_ERROR, | |
| 65 | |
| 66 | |
| 67 // enable / disable watching file and executing tests whenever any file chan ges | |
| 68 autoWatch: true, | |
| 69 | |
| 70 | |
| 71 // start these browsers | |
| 72 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc her | |
| 73 browsers: ['Chrome'], | |
| 74 | |
| 75 | |
| 76 // Continuous Integration mode | |
| 77 // if true, Karma captures browsers, runs the tests and exits | |
| 78 singleRun: false, | |
| 79 | |
| 80 plugins: [ | |
| 81 'karma-mocha', | |
| 82 'karma-chrome-launcher' | |
| 83 ] | |
| 84 }); | |
| 85 }; | |
| OLD | NEW |