-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathkarma.conf.js
43 lines (40 loc) · 1.05 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
module.exports = function(config) {
var cfg = {
frameworks: ["jasmine"],
files: [
"dist/photonui.js",
"dist/photonui-base.css",
"dist/photonui-theme-particle.css",
"test/helpers.js",
"test/style.css",
"test/spec/**/*.js", {
pattern: "test/*.png",
watched: false,
included: false,
served: true
}
],
proxies: {
"/test/": "/base/test/"
},
reporters: ["spec"],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ["Firefox", "Chrome"],
captureTimeout: 60000,
singleRun: true,
concurrency: 1,
customLaunchers: {
Chrome_travis_ci: {
base: "Chrome",
flags: ["--no-sandbox"]
}
}
};
if (process.env.TRAVIS) {
cfg.browsers = ["Firefox", "Chrome_travis_ci"];
}
config.set(cfg);
};