-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
58 lines (48 loc) · 1.17 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
49
50
51
52
53
54
55
56
57
58
'use strict';
const istanbul = require("browserify-istanbul");
module.exports = function(config) {
config.set({
basePath: "",
color: true,
logLevel: config.LOG_INFO,
singleRun: true,
frameworks: ["browserify", "jasmine-ajax", "jasmine"],
browsers: ["ChromeHeadless"],
files: [
"spec/lib/jasmine-2.8.0/mock-ajax.js", // delete after jasmine-ajax PR #176
"spec/SpecHelper.js",
"spec/*Spec.js",
],
reporters: ["spec", "coverage"],
preprocessors: {
"src/*.js": ["browserify", "coverage"],
"spec/SpecHelper.js": ["browserify", "coverage"],
"spec/*Spec.js": ["browserify", "coverage"]
},
browserify: {
debug: true,
paths: ["."],
transform: [
istanbul({
instrumenterConfig: { embedSource: true }
})
]
},
coverageReporter: {
dir: "spec/coverage/",
reporters: [
{ type: "text-summary" },
{ type: "lcov" }
]
},
customLaunchers: {
Chrome_travis_ci: {
base: "Chrome",
flags: ["--no-sandbox"]
}
},
});
if (process.env.TRAVIS) {
config.browsers = ["Chrome_travis_ci"];
}
}