-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathkarma.conf.js
48 lines (48 loc) · 1.23 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
44
45
46
47
48
// Generated by CoffeeScript 1.8.0
module.exports = function(config) {
var configuration;
configuration = {
basePath: '',
frameworks: ['jasmine', 'requirejs'],
files: [
{
pattern: 'src/**/*.js',
included: false
}, {
pattern: 'test/**/*Spec.js',
included: false
}, 'test/test-main.js'
],
exclude: [],
preprocessors: {
"src/**/*.js": "coverage"
},
reporters: ['progress', 'coverage'],
coverageReporter: {
type: "lcov",
dir: "coverage/"
},
plugins: ['karma-jasmine', 'karma-requirejs', 'karma-chrome-launcher', 'karma-phantomjs-launcher', 'karma-firefox-launcher', 'karma-ie-launcher', 'karma-coverage'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['PhantomJS'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
singleRun: false,
captureTimeout: 6000
};
if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci', 'PhantomJS', 'Firefox'];
configuration.preprocessors = {
"src/*.js": "coverage",
"src/core/*.js": "coverage"
};
}
return config.set(configuration);
};