forked from bugsnag/bugsnag-js
-
Notifications
You must be signed in to change notification settings - Fork 3
/
karma.conf.js
45 lines (42 loc) · 1.13 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
var browsers = require("./browsers.json");
module.exports = function(config) {
var travisSauceLabsOptions = {
build: process.env.TRAVIS_BUILD_NUMBER,
testName: "Bugsnag.js Browser Tests",
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
startConnect: false,
};
config.set({
basePath: "",
port: 9876,
frameworks: [
"mocha-ie-legacy"
],
files: [
"test/assert.js",
"test/stub.js",
"test/test.bugsnag.js",
{ pattern: "src/bugsnag.js", watched: true, included: false, served: true },
{ pattern: "test/**/*", watched: true, included: false, served: true }
],
proxies: {
"/": "/base/test/",
"/src": "/base/src",
"/amd": "/base/test/amd"
},
concurrency: 1,
captureTimeout: 100000,
browserDisconnectTimeout: 100000,
browserNoActivityTimeout: 100000,
customLaunchers: browsers,
browsers: ["PhantomJS"].concat(Object.keys(browsers)),
reporters: ["dots", "saucelabs"],
sauceLabs: process.env.TRAVIS ? travisSauceLabsOptions : {},
client: {
mocha: {
timeout: 100000,
ui: "bdd"
}
}
});
};