OLD | NEW |
| (Empty) |
1 // Karma configuration | |
2 // Generated on Tue Oct 07 2014 15:12:58 GMT+1100 (EST) | |
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 | |
11 // frameworks to use | |
12 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter | |
13 frameworks: ['mocha'], | |
14 | |
15 | |
16 // list of files / patterns to load in the browser | |
17 files: [ | |
18 'bower_components/platform/platform.js', | |
19 'bower_components/chai/chai.js', | |
20 'bower_components/sugar/release/sugar-full.development.js', | |
21 'test/karma-loader.html', | |
22 '{lib,model,ui}/test/*', | |
23 {pattern: 'bower_components/**/*.{js,html,css,map}', included: false}, | |
24 {pattern: '{lib,model,ui}/*', included: false}, | |
25 ], | |
26 | |
27 | |
28 // list of files to exclude | |
29 exclude: [ | |
30 ], | |
31 | |
32 | |
33 // preprocess matching files before serving them to the browser | |
34 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces
sor | |
35 preprocessors: { | |
36 }, | |
37 | |
38 | |
39 // test results reporter to use | |
40 // possible values: 'dots', 'progress' | |
41 // available reporters: https://npmjs.org/browse/keyword/karma-reporter | |
42 reporters: ['progress'], | |
43 | |
44 | |
45 // web server port | |
46 port: 9876, | |
47 | |
48 | |
49 // enable / disable colors in the output (reporters and logs) | |
50 colors: true, | |
51 | |
52 | |
53 // level of logging | |
54 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR
N || config.LOG_INFO || config.LOG_DEBUG | |
55 logLevel: config.LOG_INFO, | |
56 | |
57 | |
58 // enable / disable watching file and executing tests whenever any file chan
ges | |
59 autoWatch: true, | |
60 | |
61 | |
62 // start these browsers | |
63 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc
her | |
64 browsers: ['Chrome'], | |
65 | |
66 | |
67 // Continuous Integration mode | |
68 // if true, Karma captures browsers, runs the tests and exits | |
69 singleRun: false | |
70 }); | |
71 }; | |
OLD | NEW |