Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Karma configuration | 1 // Karma configuration |
| 2 // Generated on Mon Jul 21 2014 15:27:46 GMT-0700 (PDT) | 2 // Generated on Mon Jul 21 2014 15:27:46 GMT-0700 (PDT) |
| 3 | 3 |
| 4 module.exports = function(config) { | 4 module.exports = function(config) { |
| 5 config.set({ | 5 config.set({ |
| 6 | 6 |
| 7 // base path that will be used to resolve all patterns (eg. files, exclude) | 7 // base path that will be used to resolve all patterns (eg. files, exclude) |
| 8 basePath: '.', | 8 basePath: '.', |
| 9 | 9 |
| 10 // frameworks to use | 10 // frameworks to use |
| 11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter | 11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 12 frameworks: ['mocha'], | 12 frameworks: ['mocha'], |
| 13 | 13 |
| 14 // mocha setup | 14 // mocha setup |
| 15 client: { | 15 client: { |
| 16 mocha: { | 16 mocha: { |
| 17 ui: 'bdd', | 17 ui: 'bdd', |
| 18 checkLeaks: true, | |
|
ojan
2014/08/13 00:30:28
just curious, what does this do?
michaelpg
2014/08/13 00:41:09
Checks for global variables being set (window.net
| |
| 18 globals: ['net'] | 19 globals: ['net'] |
| 19 } | 20 } |
| 20 }, | 21 }, |
| 21 | 22 |
| 22 // list of files / patterns to load in the browser | 23 // list of files / patterns to load in the browser |
| 23 files: [ | 24 files: [ |
| 24 'bower_components/platform/platform.js', | 25 'bower_components/platform/platform.js', |
| 25 'test/karma-loader.html', | 26 'test/karma-loader.html', |
| 26 'bower_components/chai/chai.js', | 27 'bower_components/chai/chai.js', |
| 27 'bower_components/sugar/release/sugar-full.development.js', | 28 'bower_components/sugar/release/sugar-full.development.js', |
| 28 {pattern: 'bower_components/**/*.{js,html,css,map}', included: false}, | 29 {pattern: 'bower_components/**/*.{js,html,css,map}', included: false}, |
| 29 'node_modules/mocha/mocha.js', | 30 'node_modules/mocha/mocha.js', |
| 30 'polymer-load-warning.html', | 31 'polymer-load-warning.html', |
| 32 {pattern: 'base/*.html', included: false}, | |
| 33 {pattern: 'lib/*.html', included: false}, | |
| 31 {pattern: 'model/*.html', included: false}, | 34 {pattern: 'model/*.html', included: false}, |
| 32 {pattern: 'lib/*.html', included: false}, | |
| 33 'lib/test/*.html', | 35 'lib/test/*.html', |
| 34 'model/test/*.html', | 36 'model/test/*.html', |
| 35 'scripts/*.js', | 37 'scripts/*.js', |
| 36 {pattern: 'ui/*.html', included: false}, | 38 {pattern: 'ui/*.html', included: false}, |
| 37 'ui/test/*', | 39 'ui/test/*', |
| 38 ], | 40 ], |
| 39 | 41 |
| 40 // list of files to exclude | 42 // list of files to exclude |
| 41 exclude: [ | 43 exclude: [ |
| 42 'model/*tests.html', | 44 'model/*tests.html', |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 // Continuous Integration mode | 76 // Continuous Integration mode |
| 75 // if true, Karma captures browsers, runs the tests and exits | 77 // if true, Karma captures browsers, runs the tests and exits |
| 76 singleRun: false, | 78 singleRun: false, |
| 77 | 79 |
| 78 plugins: [ | 80 plugins: [ |
| 79 'karma-mocha', | 81 'karma-mocha', |
| 80 'karma-chrome-launcher' | 82 'karma-chrome-launcher' |
| 81 ] | 83 ] |
| 82 }); | 84 }); |
| 83 }; | 85 }; |
| OLD | NEW |