-
Notifications
You must be signed in to change notification settings - Fork 32
/
conf.js
36 lines (31 loc) · 916 Bytes
/
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
exports.config = {
sauceUser: process.env.SAUCE_USERNAME,
sauceKey: process.env.SAUCE_ACCESS_KEY,
// sauceRegion: 'eu',
specs: ['specs/*spec.js'],
onPrepare: function () {
var caps = browser.getCapabilities()
},
multiCapabilities: [{
browserName: 'firefox',
version: 'latest',
platform: 'OS X 10.13',
name: "firefox-tests",
shardTestFiles: true,
maxInstances: 25
}, {
browserName: 'chrome',
version: 'latest',
platform: 'Windows 10',
name: "chrome-tests",
shardTestFiles: true,
maxInstances: 25
}],
onComplete: function () {
var printSessionId = function (jobName) {
browser.getSession().then(function (session) {
console.log('SauceOnDemandSessionID=' + session.getId() + ' job-name=' + jobName);
});
}
}
}