OLD | NEW |
| (Empty) |
1 module.exports = function(config) { | |
2 config.set({ | |
3 //logLevel: config.LOG_DEBUG, | |
4 basePath: '.', | |
5 frameworks: ['dart-unittest'], | |
6 | |
7 // list of files / patterns to load in the browser | |
8 // all tests must be 'included', but all other libraries must be 'served' an
d | |
9 // optionally 'watched' only. | |
10 files: [ | |
11 'test/jasmine_syntax.dart', | |
12 'test/*.dart', | |
13 'test/**/*_spec.dart', | |
14 'test/config/filter_tests.dart', | |
15 {pattern: '**/*.dart', watched: true, included: false, served: true}, | |
16 'packages/browser/dart.js', | |
17 'packages/browser/interop.js' | |
18 ], | |
19 | |
20 exclude: [ | |
21 'test/io/**' | |
22 ], | |
23 | |
24 autoWatch: false, | |
25 | |
26 // If browser does not capture in given timeout [ms], kill it | |
27 captureTimeout: 5000, | |
28 | |
29 plugins: [ | |
30 'karma-dart', | |
31 'karma-chrome-launcher', | |
32 'karma-script-launcher', | |
33 'karma-junit-reporter', | |
34 '../../../karma-parser-generator', | |
35 '../../../karma-parser-getter-setter' | |
36 ], | |
37 | |
38 customLaunchers: { | |
39 Dartium: { base: 'ChromeCanary', flags: ['--no-sandbox'] }, | |
40 ChromeNoSandbox: { base: 'Chrome', flags: ['--no-sandbox'] } | |
41 }, | |
42 | |
43 preprocessors: { | |
44 'test/core/parser/generated_functions.dart': ['parser-generator'], | |
45 'test/core/parser/generated_getter_setter.dart': ['parser-getter-setter'] | |
46 }, | |
47 | |
48 junitReporter: { | |
49 outputFile: 'test_out/unit.xml', | |
50 suite: 'unit' | |
51 } | |
52 }); | |
53 }; | |
OLD | NEW |