-
-
Notifications
You must be signed in to change notification settings - Fork 111
/
cucumber.js
30 lines (26 loc) · 906 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
const feature = [
'--require-module ts-node/register',
'--require features/**/*.ts',
`--format progress-bar`,
'--format rerun:logs/@rerun.txt',
'--format usage:logs/usage.txt',
'--format message:logs/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,
};