-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathbase.conf.js
More file actions
36 lines (32 loc) · 1.01 KB
/
base.conf.js
File metadata and controls
36 lines (32 loc) · 1.01 KB
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 = {
user: process.env.BROWSERSTACK_USERNAME || 'BROWSERSTACK_USERNAME',
key: process.env.BROWSERSTACK_ACCESS_KEY || 'BROWSERSTACK_ACCESS_KEY',
updateJob: false,
specs: ['./tests/specs/test.js'],
exclude: [],
logLevel: 'warn',
coloredLogs: true,
screenshotPath: './errorShots/',
baseUrl: '',
waitforTimeout: 10000,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
hostname: 'hub.browserstack.com',
services: [['browserstack']],
before: function () {
var chai = require('chai');
global.expect = chai.expect;
chai.Should();
},
afterTest: async (test, context, { error, result, duration, passed, retries }) => {
console.log(`~~~~~~~~~~~~~~~~~~~~~~~~ AFTER TEST HOOK TIMESTAMP :: ${Date.now()} ~~~~~~~~~~~~~~~~~~~~~~~~`)
},
after: function (result, capabilities, specs) {
console.log(`~~~~~~~~~~~~~~~~~~~~~~~~ AFTER HOOK TIMESTAMP :: ${Date.now()} ~~~~~~~~~~~~~~~~~~~~~~~~`)
},
framework: 'mocha',
mochaOpts: {
ui: 'bdd',
timeout: 5000,
},
};