| 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 'bower_components/platform/platform.js', |
| 24 {pattern: 'bower_components/sugar/release/sugar-full.development.js', watc
hed: true, included: true, served: true}, | 24 'test/karma_loader.html', |
| 25 {pattern: 'bower_components/platform/platform.js', watched: true, included
: true, served: true}, | 25 'bower_components/chai/chai.js', |
| 26 {pattern: 'bower_components/polymer/polymer.html', watched: true, included
: true, served: true}, | 26 'bower_components/sugar/release/sugar-full.development.js', |
| 27 {pattern: 'bower_components/**/*.{js,html,css,map}', watched: true, includ
ed: false, served: true}, | 27 {pattern: 'bower_components/**/*.{js,html,css,map}', included: false}, |
| 28 {pattern: 'node_modules/mocha/mocha.js', watched: true, included: true, se
rved: true}, | 28 'node_modules/mocha/mocha.js', |
| 29 {pattern: 'polymer-load-warning.html', watched: true, included: false, ser
ved: true}, | 29 'polymer-load-warning.html', |
| 30 {pattern: 'model/*.html', watched: true, included: false, served: true}, | 30 {pattern: 'model/*.html', included: false}, |
| 31 {pattern: 'model/test/*.html', watched: true, included: true, served: true
}, | 31 'model/test/*.html', |
| 32 {pattern: 'scripts/*.js', watched: true, included: true, served: true}, | 32 'scripts/*.js', |
| 33 {pattern: 'ui/*.html', watched: true, included: false, served: true}, | 33 {pattern: 'ui/*.html', included: false}, |
| 34 'ui/test/*', | 34 'ui/test/*', |
| 35 ], | 35 ], |
| 36 | 36 |
| 37 // list of files to exclude | 37 // list of files to exclude |
| 38 exclude: [ | 38 exclude: [ |
| 39 'model/*tests.html', | 39 'model/*tests.html', |
| 40 'scripts/*tests.js', | 40 'scripts/*tests.js', |
| 41 'ui/*tests.html', | 41 'ui/*tests.html', |
| 42 ], | 42 ], |
| 43 | 43 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 71 // Continuous Integration mode | 71 // Continuous Integration mode |
| 72 // if true, Karma captures browsers, runs the tests and exits | 72 // if true, Karma captures browsers, runs the tests and exits |
| 73 singleRun: false, | 73 singleRun: false, |
| 74 | 74 |
| 75 plugins: [ | 75 plugins: [ |
| 76 'karma-mocha', | 76 'karma-mocha', |
| 77 'karma-chrome-launcher' | 77 'karma-chrome-launcher' |
| 78 ] | 78 ] |
| 79 }); | 79 }); |
| 80 }; | 80 }; |
| OLD | NEW |