| 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 } | 18 } |
| 19 }, | 19 }, |
| 20 | 20 |
| 21 // list of files / patterns to load in the browser | 21 // list of files / patterns to load in the browser |
| 22 files: [ | 22 files: [ |
| 23 {pattern: 'bower_components/chai/chai.js', watched: true, included: true,
served: true}, | 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}, | 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}, | 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}, | 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}, | 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}, | 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}, | 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}, | 30 {pattern: 'model/*.html', watched: true, included: false, served: true}, |
| 31 {pattern: 'ui/**/*[^tests].{js,html,css}', watched: true, included: false,
served: true}, | 31 {pattern: 'model/test/*.html', watched: true, included: true, served: true
}, |
| 32 {pattern: 'scripts/*.js', watched: true, included: true, served: true}, |
| 33 {pattern: 'ui/*.html', watched: true, included: false, served: true}, |
| 32 'ui/test/*', | 34 'ui/test/*', |
| 33 ], | 35 ], |
| 34 | 36 |
| 35 // list of files to exclude | 37 // list of files to exclude |
| 36 exclude: [ | 38 exclude: [ |
| 39 'model/*tests.html', |
| 37 'scripts/*tests.js', | 40 'scripts/*tests.js', |
| 41 'ui/*tests.html', |
| 38 ], | 42 ], |
| 39 | 43 |
| 40 // preprocess matching files before serving them to the browser | 44 // preprocess matching files before serving them to the browser |
| 41 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor | 45 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor |
| 42 preprocessors: { | 46 preprocessors: { |
| 43 }, | 47 }, |
| 44 | 48 |
| 45 // test results reporter to use | 49 // test results reporter to use |
| 46 // possible values: 'dots', 'progress' | 50 // possible values: 'dots', 'progress' |
| 47 // available reporters: https://npmjs.org/browse/keyword/karma-reporter | 51 // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| (...skipping 19 matching lines...) Expand all Loading... |
| 67 // Continuous Integration mode | 71 // Continuous Integration mode |
| 68 // if true, Karma captures browsers, runs the tests and exits | 72 // if true, Karma captures browsers, runs the tests and exits |
| 69 singleRun: false, | 73 singleRun: false, |
| 70 | 74 |
| 71 plugins: [ | 75 plugins: [ |
| 72 'karma-mocha', | 76 'karma-mocha', |
| 73 'karma-chrome-launcher' | 77 'karma-chrome-launcher' |
| 74 ] | 78 ] |
| 75 }); | 79 }); |
| 76 }; | 80 }; |
| OLD | NEW |