-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnightwatch.conf.js
40 lines (38 loc) · 898 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
const jar = require('selenium-server-standalone-jar');
const browsers = require('./browsers.js');
const config = {
src_folders: ['tests'],
output_folder: 'reports',
selenium: {
start_process: true,
server_path: jar.path,
log_path: 'logs',
host: '127.0.0.1',
port: 4444,
cli_args: {
'webdriver.chrome.driver': 'node_modules/chromedriver/bin/chromedriver',
'webdriver.gecko.driver': 'node_modules/geckodriver/bin/geckodriver'
}
},
test_runner: {
type: 'mocha',
options: {
ui: 'bdd',
reporter: 'spec'
}
},
test_settings: {
default: {
launch_url: 'http://localhost',
selenium_port: 4444,
selenium_host: 'localhost',
silent: true,
screenshots: {
enabled: true,
path: 'screenshots'
},
desiredCapabilities: browsers.select()
}
}
};
module.exports = config;