| OLD | NEW |
| 1 // Karma configuration | 1 // Karma configuration |
| 2 // Generated on Mon Apr 20 2015 06:33:20 GMT-0700 (PDT) | 2 // Generated on Mon Apr 20 2015 06:33:20 GMT-0700 (PDT) |
| 3 | 3 |
| 4 module.exports = function(config) { | 4 module.exports = function(config) { |
| 5 var configuration = { | 5 var configuration = { |
| 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', 'requirejs', 'chai'], | 12 frameworks: ['mocha', 'requirejs', 'chai'], |
| 13 | 13 |
| 14 // list of files / patterns to load in the browser | 14 // list of files / patterns to load in the browser |
| 15 files: [ | 15 files: [ |
| 16 {pattern: 'lib/js/amd/dart_sdk.js', included: false}, | 16 {pattern: 'lib/js/amd/dart_sdk.js', included: false}, |
| 17 {pattern: 'gen/codegen_output/pkg/*.js', included: false}, | 17 {pattern: 'gen/codegen_output/pkg/*.js', included: false}, |
| 18 {pattern: 'gen/codegen_output/language/**/*.js', included: false}, | 18 {pattern: 'gen/codegen_output/language/**/*.js', included: false}, |
| 19 {pattern: 'gen/codegen_output/corelib/**/*.js', included: false}, | 19 {pattern: 'gen/codegen_output/corelib/**/*.js', included: false}, |
| 20 {pattern: 'gen/codegen_output/lib/**/*.js', included: false}, | 20 {pattern: 'gen/codegen_output/lib/**/*.js', included: false}, |
| 21 {pattern: 'gen/codegen_tests/lib/**/*.txt', included: false}, |
| 21 {pattern: 'test/browser/*.js', included: false}, | 22 {pattern: 'test/browser/*.js', included: false}, |
| 22 {pattern: 'node_modules/is_js/*.js', included: false}, | 23 {pattern: 'node_modules/is_js/*.js', included: false}, |
| 23 'test-main.js', | 24 'test-main.js', |
| 24 ], | 25 ], |
| 25 | 26 |
| 26 // list of files to exclude | 27 // list of files to exclude |
| 27 exclude: [], | 28 exclude: [], |
| 28 | 29 |
| 29 // preprocess matching files before serving them to the browser | 30 // preprocess matching files before serving them to the browser |
| 30 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor | 31 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor |
| 31 preprocessors: { | 32 preprocessors: { |
| 32 }, | 33 }, |
| 33 | 34 |
| 34 client: { | 35 client: { |
| 35 captureConsole: false, | 36 captureConsole: false, |
| 36 mocha: { | 37 mocha: { |
| 37 ui: 'tdd', | 38 ui: 'tdd', |
| 38 timeout : 6000 | 39 timeout : 6000 |
| 39 }, | 40 }, |
| 40 }, | 41 }, |
| 41 | 42 |
| 42 // test results reporter to use | 43 // test results reporter to use |
| 43 // possible values: 'dots', 'progress' | 44 // possible values: 'dots', 'progress' |
| 44 // available reporters: https://npmjs.org/browse/keyword/karma-reporter | 45 // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 45 reporters: ['progress'], | 46 reporters: ['progress'], |
| 46 | 47 |
| 47 // web server port | 48 // web server port |
| 48 port: 9876, | 49 port: 9876, |
| 49 | 50 |
| 51 // Proxy required to serve resources needed by tests. |
| 52 proxies: { |
| 53 '/root_dart/tests/lib/': '/base/gen/codegen_tests/lib/' |
| 54 }, |
| 55 |
| 50 // enable / disable colors in the output (reporters and logs) | 56 // enable / disable colors in the output (reporters and logs) |
| 51 colors: true, | 57 colors: true, |
| 52 | 58 |
| 53 // level of logging | 59 // level of logging |
| 54 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR
N || config.LOG_INFO || config.LOG_DEBUG | 60 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR
N || config.LOG_INFO || config.LOG_DEBUG |
| 55 logLevel: config.LOG_INFO, | 61 logLevel: config.LOG_INFO, |
| 56 | 62 |
| 57 // enable / disable watching file and executing tests whenever any file chan
ges | 63 // enable / disable watching file and executing tests whenever any file chan
ges |
| 58 autoWatch: true, | 64 autoWatch: true, |
| 59 | 65 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 89 // configuration.logLevel = config.LOG_DEBUG; | 95 // configuration.logLevel = config.LOG_DEBUG; |
| 90 configuration.client.captureConsole = true; | 96 configuration.client.captureConsole = true; |
| 91 } | 97 } |
| 92 | 98 |
| 93 if (process.env.DDC_BROWSERS) { | 99 if (process.env.DDC_BROWSERS) { |
| 94 configuration.browsers = process.env.DDC_BROWSERS.split(':'); | 100 configuration.browsers = process.env.DDC_BROWSERS.split(':'); |
| 95 } | 101 } |
| 96 | 102 |
| 97 config.set(configuration); | 103 config.set(configuration); |
| 98 }; | 104 }; |
| OLD | NEW |