This repository has been archived by the owner on Aug 17, 2023. It is now read-only.
forked from holidayextras/jsonapi-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.saucelabs.conf.js
91 lines (89 loc) · 1.93 KB
/
karma.saucelabs.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
"use strict";
var customLaunchers = {
win10chrome: {
base: "SauceLabs",
browserName: "chrome",
platform: "Windows 10"
},
androidChrome: {
base: "SauceLabs",
browserName: "android",
platform: "Linux"
},
win10firefox: {
base: "SauceLabs",
browserName: "firefox",
platform: "Windows 10"
},
osxSafari: {
base: "SauceLabs",
browserName: "safari",
platform: "OS X 10.11"
},
iosSafari: {
base: "SauceLabs",
browserName: "iphone",
platform: "OS X 10.10"
},
iosSafari92: {
base: "SauceLabs",
browserName: "iphone",
platform: "OS X 10.10",
version: "9.2"
},
win10ie11: {
base: "SauceLabs",
browserName: "internet explorer",
platform: "Windows 10"
},
win7ie9: {
base: "SauceLabs",
browserName: "internet explorer",
platform: "Windows 7",
version: "9.0"
}
};
module.exports = function(config) {
config.set({
sauceLabs: {
testName: "jsonapi-client full stack tests"
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
frameworks: [ "mocha" ],
reporters: [ "spec", "saucelabs" ],
plugins: [ "karma-mocha", "karma-sauce-launcher", "karma-spec-reporter" ],
singleRun: true,
autoWatch: false,
files: [
"https://cdn.polyfill.io/v2/polyfill.js?features=Promise",
"dist/jsonapi-client-test.js"
],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
concurrency: 5,
client: {
captureConsole: true,
timeout: 10000,
mocha: {
timeout: 10000
}
},
captureTimeout: 300000,
customHeaders: [{
name: "Access-Control-Allow-Origin",
value: "*"
},
{
name: "Access-Control-Allow-Methods",
value: "GET, POST, PATCH, DELETE, OPTIONS"
}],
startConnect: true,
connectOptions: {
verbose: false,
verboseDebugging: false
},
browserNoActivityTimeout: 30000
});
};