forked from adobe/alloy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.saucelabs.conf.js
57 lines (54 loc) · 1.35 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
const karmaSauceLauncher = require("karma-sauce-launcher");
const karmaConfig = require("./karma.conf");
module.exports = config => {
karmaConfig(config);
const customLaunchers = {
sl_chromeW3C: {
base: "SauceLabs",
browserName: "chrome",
browserVersion: "latest",
platform: "Windows 11"
},
sl_safariW3C: {
base: "SauceLabs",
browserName: "safari",
browserVersion: "latest",
platform: "macOS 11.00"
},
sl_firefoxW3C: {
base: "SauceLabs",
browserName: "firefox",
platformName: "Windows 11",
browserVersion: "latest",
"sauce:options": {
geckodriverVersion: "0.27.0"
}
},
sl_edgeW3C: {
base: "SauceLabs",
browserName: "microsoftedge",
browserVersion: "latest",
platform: "Windows 11"
}
};
config.set({
browsers: Object.keys(customLaunchers),
customLaunchers,
concurrency: 10,
colors: true,
sauceLabs: {
screenResolution: "800x600",
build: `GH #${process.env.BUILD_NUMBER} (${process.env.BUILD_ID})`,
tunnelIdentifier: process.env.JOB_NUMBER
},
plugins: [
"karma-jasmine",
"karma-coverage",
"karma-jasmine-matchers",
"karma-spec-reporter",
"karma-rollup-preprocessor",
karmaSauceLauncher
],
reporters: ["dots", "saucelabs"]
});
};