| OLD | NEW |
| (Empty) | |
| 1 // Karma configuration |
| 2 // Generated on Mon Apr 20 2015 06:33:20 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', 'requirejs', 'chai'], |
| 13 |
| 14 // list of files / patterns to load in the browser |
| 15 files: [ |
| 16 'test-main.js', |
| 17 'lib/runtime/dart_runtime.js', |
| 18 'lib/runtime/dart/core.js', |
| 19 'lib/runtime/dart/collection.js', |
| 20 'lib/runtime/dart/math.js', |
| 21 // {pattern: 'test/browser/*.js', included: false} |
| 22 'test/browser/*.js', |
| 23 ], |
| 24 |
| 25 // list of files to exclude |
| 26 exclude: [ |
| 27 ], |
| 28 |
| 29 // preprocess matching files before serving them to the browser |
| 30 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor |
| 31 preprocessors: { |
| 32 }, |
| 33 |
| 34 client: { |
| 35 mocha: { |
| 36 ui: 'tdd' |
| 37 } |
| 38 }, |
| 39 |
| 40 // test results reporter to use |
| 41 // possible values: 'dots', 'progress' |
| 42 // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 43 reporters: ['progress'], |
| 44 |
| 45 // web server port |
| 46 port: 9876, |
| 47 |
| 48 // enable / disable colors in the output (reporters and logs) |
| 49 colors: true, |
| 50 |
| 51 // level of logging |
| 52 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR
N || config.LOG_INFO || config.LOG_DEBUG |
| 53 logLevel: config.LOG_INFO, |
| 54 |
| 55 // enable / disable watching file and executing tests whenever any file chan
ges |
| 56 autoWatch: false, |
| 57 |
| 58 // start these browsers |
| 59 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc
her |
| 60 |
| 61 // FIXME(vsm): Once harmony is on by default, we can simply add the followin
g: |
| 62 // browsers: ['Chrome'], |
| 63 // and remove the custom launchers. |
| 64 customLaunchers: { |
| 65 chrome_harmony: { |
| 66 base: 'Chrome', |
| 67 flags: ['--js-flags="--harmony-arrow-functions --harmony-classes --harmo
ny-computed-property-names"'] |
| 68 }, |
| 69 |
| 70 chrome_canary_harmony: { |
| 71 base: 'ChromeCanary', |
| 72 flags: ['--js-flags="--harmony-arrow-functions --harmony-classes --harmo
ny-computed-property-names"'] |
| 73 }, |
| 74 }, |
| 75 browsers: ['chrome_harmony'], |
| 76 |
| 77 // Continuous Integration mode |
| 78 // if true, Karma captures browsers, runs the tests and exits |
| 79 singleRun: false, |
| 80 }); |
| 81 }; |
| OLD | NEW |