-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcucumber.js
More file actions
33 lines (31 loc) · 974 Bytes
/
cucumber.js
File metadata and controls
33 lines (31 loc) · 974 Bytes
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
const common = {
import: ['src/**/*.ts'],
format: [
'json:functional-output/functional/cucumber-report.json',
'html:functional-output/functional/report.html',
'summary',
'progress-bar',
'junit:functional-output/functional/cucumber-result.xml',
],
formatOptions: { snippetInterface: 'async-await' },
tags: `(not @broken and not @obsolete and not @TODO and not @review and not @disabled) and ${process.env.INCLUDE_TAGS ? `(${process.env.INCLUDE_TAGS})` : '(@smoketest or @regression or @end2end)'}`,
// retry features with @retry tag once
retry: 1,
retryTagFilter: '@retry',
};
if (process.env.USE_ALLURE) {
common.format.push('./src/support/reporters/allure-reporter.ts');
} else {
common.format.push('@cucumber/pretty-formatter');
}
export default function () {
return {
default: {
...common,
parallel: 0, // Set to 0 as had problems with parallel execution
},
sequential: {
...common,
},
};
}