-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkarma.conf.js
More file actions
27 lines (25 loc) · 835 Bytes
/
karma.conf.js
File metadata and controls
27 lines (25 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha'],
files: ['./test/*'],
plugins: [
'karma-mocha', "karma-phantomjs-launcher", "karma-chrome-launcher"
],
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
port: 9876,
colors: true,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
browsers: ['PhantomJS'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
concurrency: Infinity
})
}