-
Notifications
You must be signed in to change notification settings - Fork 0
/
cucumber.js
53 lines (40 loc) · 1.68 KB
/
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
49
50
51
52
53
/* eslint-disable prettier/prettier */
var commonArrayParams = [
'--require-module ts-node/register',
'--require src/**/*.ts',
'--format-options \'{ "snippetInterface": "async-await" }\'',
'--publish-quiet',
'-f json:reports/cucumber_report.json', // Note: this formatter is deprecated and will be removed in the next major release.
'-f message:reports/cucumber-messages.ndjson'
];
var defaultParams = commonArrayParams.concat(['--format progress-bar']).join(' ');
var ciParams = commonArrayParams.concat([]).join(' ');
var checkParams = commonArrayParams.concat(['--format summary']).join(' ');
var debugParams = commonArrayParams.concat(['--tags @debug', ' --format cucumber-console-formatter']).join(' ');
var tagOnlyParams = commonArrayParams
.concat([
'--tags @only',
' --format cucumber-console-formatter',
' -f html:reports/build_in_report.html'
])
.join(' ');
var quickRunParams = commonArrayParams
.concat(['--format cucumber-console-formatter', '--format-options \'{ "colorsEnabled": false }\'', '-f html:reports/quickRun_report.html'])
.join(' ');
module.exports = {
default: defaultParams,
ciParams: ciParams,
checkParams: checkParams,
debugParams: debugParams,
onlyParams: tagOnlyParams,
/**quickRun used in cucumber-quick plugin. See .vscode/settings.json */
quickRun: quickRunParams,
};
// '--format json:./reports/cucumber-json-reports/report.json',
//'--require step_definitions/**/*.ts',
//'--require hooks/**/*.ts',
//'--format rerun:@rerun.txt',
//'--format usage:reports/usage.txt',
//'--format message:reports/messages.ndjson',
//'--format html:reports/report.html',
//'--parallel 20',