-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cucumber.js
36 lines (35 loc) · 958 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
const {runner} = require("./src/runnerFiles/run")
let featureFilePath = `src/tests/feature/featureFiles/${runner.PACK}/${runner.SUB_PACK}/${runner.SUB_TO_SUB_PACK}/`;
if(runner.FEATURE)
{
featureFilePath += `${runner.FEATURE}.feature`
}else{
featureFilePath += `*.feature`
}
const tags = runner.TAGS || 'not @*';
module.exports = {
default: {
projects:[{
name: 'Playwright'
}],
formatOptions: {
snipperInterface : "async-wait",
},
paths : [featureFilePath],
tags: tags,
publishQuiet: true,
dryRun: false,
require: [
"src/tests/feature/step_definitions/*.js",
"src/tests/feature/support/hooks.js",
"src/tests/feature/support/world.js"
],
format:[
"progress-bar",
"html:test-results/cucumber_html_reports/cucumber-report.html",
"json:test-results/cucumber_html_reports/cucumber-report.json",
"rerun:@rerun.txt"
],
parallel: 1
},
}