1
|
1 |
// Karma configuration |
|
2 |
// Generated on Thu Mar 27 2014 15:49:13 GMT+0800 (PHT) |
|
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: ['jasmine'], |
|
14 |
|
|
15 |
|
|
16 |
// list of files / patterns to load in the browser |
|
17 |
files: [ |
|
18 |
'./build/lib.js', |
|
19 |
'./build/app.js', |
|
20 |
'./build/templates.js', |
|
21 |
'./app/**/*test.js' |
|
22 |
], |
|
23 |
|
|
24 |
|
|
25 |
// list of files to exclude |
|
26 |
exclude: [ |
|
27 |
|
|
28 |
], |
|
29 |
|
|
30 |
|
|
31 |
// preprocess matching files before serving them to the browser |
|
32 |
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
|
33 |
preprocessors: { |
|
34 |
|
|
35 |
}, |
|
36 |
|
|
37 |
|
|
38 |
// test results reporter to use |
|
39 |
// possible values: 'dots', 'progress' |
|
40 |
// available reporters: https://npmjs.org/browse/keyword/karma-reporter |
|
41 |
reporters: ['progress'], |
|
42 |
|
|
43 |
|
|
44 |
// web server port |
|
45 |
port: 9876, |
|
46 |
|
|
47 |
|
|
48 |
// enable / disable colors in the output (reporters and logs) |
|
49 |
colors: true, |
|
50 |
|
|
51 |
|
|
52 |
// level of logging |
|
53 |
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
|
54 |
logLevel: config.LOG_DEBUG, |
|
55 |
|
|
56 |
|
|
57 |
// enable / disable watching file and executing tests whenever any file changes |
|
58 |
autoWatch: true, |
|
59 |
|
|
60 |
|
|
61 |
// start these browsers |
|
62 |
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
|
63 |
browsers: ['Chrome'], |
|
64 |
|
|
65 |
|
|
66 |
// Continuous Integration mode |
|
67 |
// if true, Karma captures browsers, runs the tests and exits |
|
68 |
singleRun: false |
|
69 |
}); |
|
70 |
}; |