forked from cucumber/cucumber-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cucumber.js
48 lines (44 loc) · 986 Bytes
/
cucumber.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
const feature = [
'--require-module ts-node/register',
'--require features/**/*.ts',
`--format ${
process.env.CI || !process.stdout.isTTY ? 'progress' : 'progress-bar'
}`,
'--format rerun:@rerun.txt',
'--format usage:usage.txt',
'--format message:messages.ndjson',
'--publish-quiet',
].join(' ')
const cck = [
'--require-module',
'ts-node/register',
'--format',
'message',
].join(' ')
const FORMATTERS_INCLUDE = [
'attachments',
'data-tables',
'examples-tables',
'minimal',
'parameter-types',
'rules',
'stack-traces',
'--publish-quiet',
]
const htmlFormatter = [
`node_modules/@cucumber/compatibility-kit/features/{${FORMATTERS_INCLUDE.join(
','
)}}/*.feature`,
'--require-module',
'ts-node/register',
'--require',
`compatibility/features/{${FORMATTERS_INCLUDE.join(',')}}/*.ts`,
'--format',
'html:html-formatter.html',
'--publish-quiet',
].join(' ')
module.exports = {
default: feature,
cck,
htmlFormatter,
}