• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Karma configuration
2// Generated on Fri Dec 16 2016 13:09:51 GMT+0000 (UTC)
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', 'chai', 'sinon'],
14
15
16    // list of files / patterns to load in the browser
17    files: [
18      'dist/debug.js',
19      'test/*spec.js'
20    ],
21
22
23    // list of files to exclude
24    exclude: [
25      'src/node.js'
26    ],
27
28
29    // preprocess matching files before serving them to the browser
30    // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
31    preprocessors: {
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    // Concurrency level
67    // how many browser should be started simultaneous
68    concurrency: Infinity
69  })
70}
71