UNPKG

1.35 kBJavaScriptView Raw
1// Karma configuration
2// Generated on Wed Mar 19 2014 12:00:53 GMT-0700 (PDT)
3
4module.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 'test/kd.libs.js',
19 'test/kd.test.js'
20 ],
21
22 // test results reporter to use
23 // possible values: 'dots', 'progress'
24 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
25 reporters: ['dots'],
26
27
28 // web server port
29 port: 9876,
30
31
32 // enable / disable colors in the output (reporters and logs)
33 colors: true,
34
35
36 // level of logging
37 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
38 logLevel: config.LOG_INFO,
39
40
41 // enable / disable watching file and executing tests whenever any file changes
42 autoWatch: false,
43
44
45 // start these browsers
46 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
47 browsers: ['Firefox'],
48
49
50 // Continuous Integration mode
51 // if true, Karma captures browsers, runs the tests and exits
52 singleRun: true
53 });
54};
55