-
Notifications
You must be signed in to change notification settings - Fork 27
/
protractor.conf.js
41 lines (33 loc) · 1.17 KB
/
protractor.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
require('babel/register');
exports.config = {
// The advantage of directly connecting to browser drivers is that your test scripts may start up and run faster.
directConnect: true,
// https://github.com/angular/protractor/blob/master/docs/jasmine-upgrade.md
framework: 'jasmine2',
// The address of a running selenium server.
//seleniumAddress: 'http://localhost:4444/wd/hub',
// A base URL for your application under test. Calls to protractor.get()
// with relative paths will be prepended with this.
baseUrl: 'http://localhost:9000',
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': ['no-sandbox']
}
},
// Spec patterns are relative to the configuration file location passed
// to proractor (in this example conf.js).
// They may include glob patterns.
specs: ['test-e2e/**/*.js'],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
isVerbose: true,
showTiming: true,
includeStackTrace: true,
showColors: true // Use colors in the command line report.
}
};
if (process.env.TRAVIS) {
exports.config.capabilities.chromeOptions.binary = __dirname + '/chrome-linux/chrome';
}