forked from codeceptjs/CodeceptJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodecept.WebDriver.devtools.coverage.js
49 lines (48 loc) · 1.08 KB
/
codecept.WebDriver.devtools.coverage.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
const TestHelper = require('../support/TestHelper');
module.exports.config = {
tests: './*_test.js',
timeout: 10000,
output: './output',
helpers: {
WebDriver: {
url: TestHelper.siteUrl(),
browser: 'Chromium',
windowSize: '500x700',
devtoolsProtocol: true,
waitForTimeout: 5000,
capabilities: {
chromeOptions: {
args: ['--headless', '--disable-gpu', '--window-size=500,700'],
},
},
},
ScreenshotSessionHelper: {
require: '../support/ScreenshotSessionHelper.js',
outputPath: './output',
},
ExpectHelper: {},
},
include: {},
mocha: {},
name: 'acceptance',
plugins: {
screenshotOnFail: {
enabled: true,
},
coverage: {
enabled: true,
debug: true,
name: 'CodeceptJS Coverage Report',
sourceFilter: '**/src/**',
sourcePath: {
'todomvc-react/': '',
'todomvc.com/examples/react/': '',
},
outputDir: 'output/coverage',
},
},
gherkin: {
features: './gherkin/*.feature',
steps: ['./gherkin/steps.js'],
},
};