UNPKG

1.73 kBJavaScriptView Raw
1// Karma configuration
2// Generated on Tue Jan 12 2016 07:56:12 GMT-0500 (EST)
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', 'browserify'],
14
15
16 // list of files / patterns to load in the browser
17 files: [
18 'test/promise.js'
19 ],
20
21
22 // list of files to exclude
23 exclude: [],
24
25
26 // preprocess matching files before serving them to the browser
27 // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
28 preprocessors: {
29 'test/promise.js': ['browserify']
30 },
31
32
33 // test results reporter to use
34 // possible values: 'dots', 'progress'
35 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
36 reporters: ['progress'],
37
38
39 // web server port
40 port: 9876,
41
42
43 // enable / disable colors in the output (reporters and logs)
44 colors: true,
45
46
47 // level of logging
48 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
49 logLevel: config.LOG_INFO,
50
51
52 // enable / disable watching file and executing tests whenever any file changes
53 autoWatch: true,
54
55
56 // start these browsers
57 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
58 browsers: ['Chrome'],
59
60
61 // Continuous Integration mode
62 // if true, Karma captures browsers, runs the tests and exits
63 singleRun: false,
64
65 // Concurrency level
66 // how many browser should be started simultaneous
67 concurrency: Infinity,
68
69 plugins: [
70 'karma-browserify',
71 'karma-mocha',
72 'karma-chrome-launcher'
73 ]
74 })
75}