Skip to content

mocha: skip test in custom hooks#11158

Merged
christian-bromann merged 2 commits intowebdriverio:mainfrom
tamil777selvan:mocha_skip_tests
Sep 13, 2023
Merged

mocha: skip test in custom hooks#11158
christian-bromann merged 2 commits intowebdriverio:mainfrom
tamil777selvan:mocha_skip_tests

Conversation

@tamil777selvan
Copy link
Member

@tamil777selvan tamil777selvan commented Sep 13, 2023

Proposed changes

Fix - #6645

Preventing the execution of hooks when an exception is thrown to skip a test case in Mocha.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Further comments

Reviewers: @webdriverio/project-committers

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

Can we have a smoke test to ensure we have no regression for this functionality?

@tamil777selvan
Copy link
Member Author

Can we have a smoke test to ensure we have no regression for this functionality?

Sure thing, I'll give it a shot and update the existing tests.

@tamil777selvan
Copy link
Member Author

@christian-bromann I've included a smoke test to assess its functionality. Kindly review it and let me know your thoughts.

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent 👌

@christian-bromann christian-bromann added the PR: Bug Fix 🐛 PRs that contain bug fixes label Sep 13, 2023
@christian-bromann christian-bromann merged commit d63ef70 into webdriverio:main Sep 13, 2023
@tamil777selvan tamil777selvan deleted the mocha_skip_tests branch September 13, 2023 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Bug Fix 🐛 PRs that contain bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants