-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#11473] - Refactor wdio-allure-reporter package for better hooks han…
…dling (#12852) * Refactor wdio-allure-reporter package for better hooks handling Code has been restructured across the wdio-allure-reporter package for enhanced handling of hooks in different situations. Additionally, constant names and util function names have been updated for increased clarity. The handling of hooks particularly for mocha tests has been revised, improving the accuracy of test reports. Signed-off-by: Lara, Manuel <lararojas.mr@gmail.com> * Fixes on reporter.ts - Before Hook Failed (Duplicated) - Inner Step with fail status not propagate the fails details to test. - Other Validations * Update suite.test.ts - Fixes test cases to correct validation after fixing report.ts * Update reporter.ts Fixing: Error: packages/wdio-allure-reporter/src/reporter.ts(396,23): error TS2451: Cannot redeclare block-scoped variable 'currentTest'. Error: packages/wdio-allure-reporter/src/reporter.ts(397,23): error TS2451: Cannot redeclare block-scoped variable 'currentTest'. Error: packages/wdio-allure-reporter/src/reporter.ts(401,17): error TS2304: Cannot find name 'setHistoryId'. --------- Signed-off-by: Lara, Manuel <lararojas.mr@gmail.com> Co-authored-by: Christian Bromann <git@bromann.dev>
- Loading branch information
1 parent
a0eea57
commit 8b07694
Showing
10 changed files
with
457 additions
and
252 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.