forked from ItalyPaleAle/svelte-spa-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.conf.cjs
52 lines (46 loc) · 1.27 KB
/
nightwatch.conf.cjs
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
48
49
50
51
52
// Selenium configuration
const seleniumHost = process.env.SELENIUM_HOST || '127.0.0.1'
const seleniumPort = parseInt(process.env.SELENIUM_PORT || '4444', 10)
// Launch URL - where the server is
const launchUrl = process.env.LAUNCH_URL || 'http://localhost:5050'
// Increase max listeners to avoid a warning
require('events').EventEmitter.defaultMaxListeners = 100
module.exports = {
src_folders: [
'test/cases/'
],
output_folder: 'result',
test_runner: {
type: 'mocha',
options: {
ui: 'bdd',
reporter: 'list'
}
},
test_settings: {
default: {
launch_url: launchUrl
},
'selenium.chrome': {
selenium: {
start_process: false,
host: seleniumHost,
port: seleniumPort
},
webdriver: {
start_process: false
},
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'--headless',
'--no-sandbox',
'--disable-gpu'
]
},
acceptSslCerts: true
}
}
}
}