-
Notifications
You must be signed in to change notification settings - Fork 0
/
codecept.conf.js
41 lines (34 loc) · 919 Bytes
/
codecept.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
const { setHeadlessWhen, setCommonPlugins } = require('@codeceptjs/configure');
// turn on headless mode when running with HEADLESS=true environment variable
// export HEADLESS=true && npx codeceptjs run
setHeadlessWhen(process.env.HEADLESS);
// enable all common plugins https://github.com/codeceptjs/configure#setcommonplugins
setCommonPlugins();
/** @type {CodeceptJS.MainConfig} */
exports.config = {
tests: './*_test.js',
output: './output',
helpers: {
Playwright: {
url: 'http://localhost',
show: true,
browser: 'chromium'
}
},
include: {
I: './steps_file.js',
functionsPage: "./pages/functions.js"
},
mocha: {
timeout: 10000,
bail: true,
reporter: 'mocha-junit-reporter',
reporterOptions: {
mochaFile: './output/result.xml',
reporterEnabled: 'spec, mocha-junit-reporter'
},
},
plugins: {
},
name: 'Journal',
};