-
Notifications
You must be signed in to change notification settings - Fork 4
/
karma.conf.js
43 lines (32 loc) · 1.08 KB
/
karma.conf.js
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Karma configuration file
module.exports = function (config) {
'use strict';
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
frameworks: ['requirejs', 'mocha', 'sinon'],
// list of files / patterns to load in the browser
files: [
'lib/mocha-flight.js',
{pattern: 'bower_components/**/*.js', included: false},
{pattern: 'test/mock/*.js', included: false},
{pattern: 'test/spec/*.js', included: false},
'test/test-main.js'
],
// use dots reporter, as travis terminal does not support escaping sequences
// possible values: 'dots', 'progress', 'junit', 'teamcity'
// CLI --reporters progress
reporters: ['dots'],
// enable / disable watching file and executing tests whenever any file changes
// CLI --auto-watch --no-auto-watch
autoWatch: true,
// start these browsers
browsers: [
'Chrome',
'Firefox'
],
// Auto run tests on start (when browsers are captured) and exit
// CLI --single-run --no-single-run
singleRun: false
});
};