-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnightwatch.conf.js
47 lines (42 loc) · 1001 Bytes
/
nightwatch.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
var argv = require('./argv');
var cucumberArgs = [
'--require', 'specs/hooks.js',
'--require', 'specs/timeout.js',
'--require', 'specs/features/step_definitions',
'--format', 'pretty',
'--format', 'json:reports/cucumber.json',
'specs/features'
];
var tags = typeof argv.tags === 'string' ? argv.tags : (argv.tags ? argv.tags.join(' and ') : '');
if (tags.length) {
cucumberArgs.push('--tags', tags);
}
require('nightwatch-cucumber')({
cucumberArgs: cucumberArgs
})
/*-------------*/
/*-------------*/
/*-------------*/
module.exports = {
output_folder: 'reports',
selenium: {
start_process: true,
server_path: 'test-utils/bin/selenium-server-standalone-3.0.1.jar',
"log_path" : "",
"port" : 4444,
cli_args: {
"webdriver.chrome.driver" : "test-utils/bin/chromedriver.exe"
}
},
test_settings: {
default: {
"desiredCapabilities": {
"browserName": "chrome",
"chromeOptions" : {
"args" : ["--no-sandbox"]
},
"acceptSslCerts": true
}
}
}
}