Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding back cucumber before & after Hooks support #11628

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

tamil777selvan
Copy link
Member

Proposed changes

Fixes #11491

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.

This is awesome! Do you think we could add a smoke tests that verifies that these hooks are executed? Maybe create a new cucumber config for it that has these hooks defined, then write something to a file and verify the file after the wdio testrunner execution in smoke.test.js. With customService we already have similar test that ensure that services run all hooks properly.

@christian-bromann christian-bromann added the PR: Bug Fix 🐛 PRs that contain bug fixes label Nov 8, 2023
@christian-bromann
Copy link
Member

I am working on resolving some pending PRs and will go ahead and merge this and will add the missing smoke tests myself.

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.

Thanks a lot 👍

@christian-bromann christian-bromann merged commit bbc8614 into webdriverio:main Nov 8, 2023
8 checks passed
@tamil777selvan tamil777selvan deleted the cucumberHooks branch November 9, 2023 00:49
@christian-bromann
Copy link
Member

In case you are interested: 37df96b

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.

[🐛 Bug]: afterHook is no longer called for Cucumber hooks
2 participants