-
Notifications
You must be signed in to change notification settings - Fork 4
/
karma.conf.js
123 lines (122 loc) · 2.84 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
process.env.CHROME_BIN = require('puppeteer').executablePath()
const customLaunchers = {
// sl_chrome_latest: {
// base: 'SauceLabs',
// browserName: 'chrome'
// },
// sl_firefox_latest: {
// base: 'SauceLabs',
// browserName: 'Firefox'
// },
// sl_ie_latest: {
// base: 'SauceLabs',
// browserName: 'Internet Explorer'
// },
// sl_ie: {
// base: 'SauceLabs',
// browserName: 'Internet Explorer',
// version: '10'
// },
// sl_safari_latest: {
// base: 'SauceLabs',
// browserName: 'Safari'
// },
// sl_edge_latest: {
// base: 'SauceLabs',
// browserName: 'Microsoftedge'
// },
// sl_android_latest: {
// base: 'SauceLabs',
// browserName: 'Browser',
// platform: 'Android',
// deviceName: 'Android Emulator'
// },
// sl_ios_safari_latest: {
// base: 'SauceLabs',
// browserName: 'iphone',
// platform: 'OS X 10.9'
// },
/* bs_ie_11: {
base: 'BrowserStack',
browser: 'IE',
browser_version: '11.0',
os: 'Windows',
os_version: '7'
},
bs_ie_10: {
base: 'BrowserStack',
browser: 'IE',
browser_version: '10.0',
os: 'Windows',
os_version: '7'
},
bs_firefox_latest: {
base: 'BrowserStack',
browser: 'Firefox',
os: 'Windows',
os_version: '10'
},
bs_chrome_latest: {
base: 'BrowserStack',
browser: 'Chrome',
os: 'Windows',
os_version: '10'
},
bs_safari_latest: {
base: 'BrowserStack',
browser: 'Safari',
os: 'OS X',
os_version: 'Mojave'
} */
};
module.exports = function (config) {
return config.set({
basePath: "",
frameworks: ["jasmine"],
sauceLabs: {
testName: "Referentiel",
public: "public",
},
client: {
jasmine: {
random: true,
// seed: '4321',
oneFailurePerSpec: true,
failFast: true,
timeoutInterval: 200,
},
},
browserStack: {
username: process.env.BROWSER_STACK_USERNAME,
accessKey: process.env.BROWSER_STACK_ACCESS_KEY,
startTunnel: true,
video: false,
project: "Referentiel",
},
files: [
"dist/referentiel.umd.js",
"node_modules/reset-css/reset.css",
"node_modules/jquery/dist/jquery.js",
{
pattern: "test/**/*.js",
included: true,
},
{
pattern: "test/**/*.html",
served: true,
included: false,
},
],
reporters: ["dots", "saucelabs", "BrowserStack"],
reporters: ["dots"],
logLevel: config.LOG_INFO,
autoWatch: true,
// browsers: (process.env.TRAVIS_PULL_REQUEST === null && process.env.TRAVIS_BRANCH === 'master') ? Object.keys(customLaunchers) : ['ChromeHeadless', 'FirefoxHeadless'],
browsers: ["ChromeHeadless"],
singleRun: process.env.CI != null,
port: 9876,
colors: true,
customLaunchers,
concurrency: 2,
});
};