-
-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98ebc91
commit 5a549b6
Showing
6 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
test/data/sandbox/configs/retryHooks/codecept.retry.global.conf.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
exports.config = { | ||
tests: './*_test.js', | ||
output: './output', | ||
helpers: { | ||
CustomHelper: { | ||
require: './helper.js', | ||
}, | ||
}, | ||
retry: 2, | ||
bootstrap: null, | ||
mocha: {}, | ||
name: 'retryHooks', | ||
}; |
15 changes: 15 additions & 0 deletions
15
test/data/sandbox/configs/retryHooks/codecept.retry.global.scenario.conf.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
exports.config = { | ||
tests: './*_test.js', | ||
output: './output', | ||
helpers: { | ||
CustomHelper: { | ||
require: './helper.js', | ||
}, | ||
}, | ||
retry: { | ||
Scenario: 3, | ||
}, | ||
bootstrap: null, | ||
mocha: {}, | ||
name: 'retryHooks', | ||
}; |
10 changes: 10 additions & 0 deletions
10
test/data/sandbox/configs/retryHooks/retry_global_scenario_test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Feature('Retry scenario global config'); | ||
|
||
let i = 0; | ||
|
||
Scenario('#globalScenarioRetry works', () => { | ||
console.log('ok', i, new Date()); | ||
i++; | ||
if (i < 3) throw new Error('not works'); | ||
console.log('works'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Feature('Retry global config'); | ||
|
||
let i = 0; | ||
|
||
Scenario('#globalRetry works', () => { | ||
console.log('ok', i, new Date()); | ||
i++; | ||
if (i < 3) throw new Error('not works'); | ||
console.log('works'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters