OLD | NEW |
| (Empty) |
1 // Sample Karma configuration file, that contain pretty much all the available o
ptions | |
2 // It's used for running client tests on Travis (http://travis-ci.org/#!/karma-r
unner/karma) | |
3 // Most of the options can be overriden by cli arguments (see karma --help) | |
4 // | |
5 // For all available config options and default values, see: | |
6 // https://github.com/karma-runner/karma/blob/stable/lib/config.js#L54 | |
7 | |
8 | |
9 // base path, that will be used to resolve files and exclude | |
10 basePath = '../'; | |
11 | |
12 // list of files / patterns to load in the browser | |
13 files = [ | |
14 'tools/test/mocha-htmltest.js', | |
15 'conf/mocha.conf.js', | |
16 'node_modules/chai/chai.js', | |
17 'shadowdom.js', | |
18 'test/test.main.js', | |
19 {pattern: 'src/**/*.js', included: false}, | |
20 {pattern: 'test/**/*.js', included: false}, | |
21 {pattern: 'test/**/*.html', included: false}, | |
22 {pattern: 'tools/**/*.js', included: false} | |
23 ]; | |
24 | |
25 // list of files to exclude | |
26 exclude = []; | |
27 | |
28 frameworks = ['mocha']; | |
29 | |
30 // use dots reporter, as travis terminal does not support escaping sequences | |
31 // possible values: 'dots', 'progress', 'junit', 'teamcity' | |
32 // CLI --reporters progress | |
33 reporters = ['progress']; | |
34 | |
35 // web server port | |
36 // CLI --port 9876 | |
37 port = 9876; | |
38 | |
39 // cli runner port | |
40 // CLI --runner-port 9100 | |
41 runnerPort = 9100; | |
42 | |
43 // enable / disable colors in the output (reporters and logs) | |
44 // CLI --colors --no-colors | |
45 colors = true; | |
46 | |
47 // level of logging | |
48 // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBU
G | |
49 // CLI --log-level debug | |
50 logLevel = LOG_INFO; | |
51 | |
52 // enable / disable watching file and executing tests whenever any file changes | |
53 // CLI --auto-watch --no-auto-watch | |
54 autoWatch = true; | |
55 | |
56 // Start these browsers, currently available: | |
57 // - Chrome | |
58 // - ChromeCanary | |
59 // - Firefox | |
60 // - Opera | |
61 // - Safari (only Mac) | |
62 // - PhantomJS | |
63 // - IE (only Windows) | |
64 // CLI --browsers Chrome,Firefox,Safari | |
65 browsers = ['ChromeCanary']; | |
66 | |
67 // If browser does not capture in given timeout [ms], kill it | |
68 // CLI --capture-timeout 5000 | |
69 captureTimeout = 50000; | |
70 | |
71 // Auto run tests on start (when browsers are captured) and exit | |
72 // CLI --single-run --no-single-run | |
73 singleRun = true; | |
74 | |
75 // report which specs are slower than 500ms | |
76 // CLI --report-slower-than 500 | |
77 reportSlowerThan = 500; | |
78 | |
79 // compile coffee scripts | |
80 preprocessors = { | |
81 }; | |
82 | |
83 plugins = [ | |
84 'karma-mocha', | |
85 'karma-chrome-launcher', | |
86 'karma-firefox-launcher', | |
87 'karma-script-launcher', | |
88 'karma-crbot-reporter' | |
89 ] | |
OLD | NEW |