-
Notifications
You must be signed in to change notification settings - Fork 4
/
codecept.conf.js
67 lines (66 loc) · 2.11 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
const TestData = require('./src/test/js/config/test_data')
exports.config = {
name: 'idam-web-public',
tests: './src/test/js/**/*_test.js',
output: './output',
fullPageScreenshots: true,
timeout: 240, // seconds
bootstrap: false,
retry: 3,
helpers: {
Puppeteer: {
// show: true,
url: TestData.WEB_PUBLIC_URL,
waitForTimeout: 60000,
waitForAction: TestData.WAIT_FOR_ACTION_TIMEOUT,
windowSize: "1280x960",
getPageTimeout: 20000,
chrome: {
//args: ["--proxy-server=" + process.env.PROXY_SERVER],
ignoreHTTPSErrors: true
}
},
idam_helper: {
"require": "./src/test/js/shared/idam_helper.js"
},
refdata_helper: {
"require": "./src/test/js/shared/refdata_helper.js"
},
GenerateReportHelper: {
require: "./src/test/js/shared/generate_report_helper.js"
},
Mochawesome: {
uniqueScreenshotNames: true
}
},
"include": {
"I": "./src/test/js/shared/custom_steps.js"
},
mocha: {
reporterOptions: {
'codeceptjs-cli-reporter': {
stdout: '-',
options: {
verbose: true,
steps: true
}
},
'mocha-junit-reporter': {
stdout: './output/idam-web-public-mocha--junit-stdout.log',
options: {
mochaFile: process.env.MOCHA_JUNIT_FILE_LOCATION || './build/test-results/functional/idam-web-public-integration-result.xml',
attachments: true
}
},
'mochawesome': {
stdout: './output/idam-web-public-mochawesome-stdout.log',
options: {
reportDir: 'output',
reportFilename: 'idam-web-public-e2e-result',
inlineAssets: true,
reportTitle: `IDAM Web Public E2E tests result`
}
}
}
}
};