UNPKG

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