-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcucumber.js
More file actions
57 lines (55 loc) · 1.78 KB
/
Copy pathcucumber.js
File metadata and controls
57 lines (55 loc) · 1.78 KB
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
54
55
56
57
// cucumber.js
console.log(">>> CUCUMBER CONFIG LOADED <<<");
module.exports = {
default: {
requireModule: ['ts-node/register'],
require: [
'support/world.ts',
'support/hooks.ts'
// NOTE: Step files are NOT included here!
// They are dynamically added via CLI --require arguments
// to prevent "Multiple step definitions match" errors
// when running specific feature files.
],
publishQuiet: false,
format: [
'summary',
'progress',
'html:reports/cucumber-report.html',
'json:reports/cucumber-report.json',
'rerun:reports/rerun.txt',
'allure-cucumberjs/reporter'
//'cucumberjs-allure2-reporter'
],
tags: 'not @ignore',
// paths removed - CLI paths will be used for file-based execution
// paths: ['features/**/*.feature'],
timeout: 60_000,
parallel: 3, // paralel koşu değerini buradan yönetiyoruz
retry: 0, // ⬅️ FAIL olan senaryoları 1 kez daha dene (toplam 3)
// retryTagFilter: '@flaky' // (opsiyonel) sadece @flaky etiketlilere retry uygula
dryRun: false //"senaryo çalışmadan önce step var mı?" kontrolü yapmakiçin true yap
},
rerun: {
requireModule: ['ts-node/register'],
require: [
'support/world.ts',
'support/hooks.ts'
// Step files dynamically added via CLI
],
publishQuiet: false,
format: [
'summary',
'progress',
'html:reports/cucumber-report.html',
'json:reports/cucumber-report.json',
'rerun:reports/rerun.txt',
'allure-cucumberjs/reporter'
//'cucumberjs-allure2-reporter'
],
paths: ['@reports/rerun.txt'],
timeout: 60_000,
// parallel: 2,
retry: 1 // ⬅️ Rerun profilinde de aynı
}
};