-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcucumber.cjs
52 lines (46 loc) · 1.45 KB
/
cucumber.cjs
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
/**
* This configuration object is used to set up and customize the Cucumber.js testing framework.
* It provides options for parallel execution, paths to feature files, step definitions, hooks,
* report formats, snippet interface, and world parameters.
*/
module.exports = {
default: {
/**
* Number of workers to run in parallel.
* @type {number}
*/
parallel: 1,
/**
* Glob patterns for feature files.
* @type {string[]}
*/
paths: ["./features/**/*.feature"], // path to the feature files
/**
* Glob patterns for step definition files and hooks.
* @type {string[]}
*/
import: ["./steps/**/*.js", "./hooks/**/*.js"], // path to the step definitions and hooks
/**
* Report formats to be generated.
* @type {string[]}
*/
format: [
"progress-bar",
"json:reports/cucumber-report.json",
"html:reports/cucumber-report.html",
],
/**
* Additional options for report formats.
* @type {object}
* @property {string} snippetInterface - The interface for generating snippets.
*/
formatOptions: { snippetInterface: "async-await" },
/**
* Parameters to be passed to the world constructor.
* @type {object}
*/
worldParameters: {
...process.env,
},
},
};