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

Execution stuck with skipped cucumber scenario and afterEach hook #53

Closed
isbor opened this issue Feb 19, 2021 · 1 comment
Closed

Execution stuck with skipped cucumber scenario and afterEach hook #53

isbor opened this issue Feb 19, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@isbor
Copy link

isbor commented Feb 19, 2021

Describe the bug
The problem is very similar to #51 . If a scenario is skipped in a feature file using tags and there is an afterEach hook tests execution is stuck.
Tests run ok if allure=false.
Tests run ok if there are no afterEach hook.
Tests run ok if there are no skipped tests.
Note that I've updated "@shelex/cypress-allure-plugin" to the latest version and verified that #51 is fixed.

test-stuck

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo https:/Shelex/cypress-allure-plugin-example
    1.1 Optional: Update version of "@shelex/cypress-allure-plugin" to 2.3.5
  2. Tag first scenario in Google.feature with @Skip
  3. Add additional env to cy:cucumber:run script in order to skip a scenario like: --env allure=true,TAGS='not @skip'
  4. Add afterEach hook in a new file or in any of the existing js files in "cypress/integration/cucumber/news/Google" folder

Expected behavior
All tests are executed.

Environment (please complete the following information):

  • Cypress version: 6.2.0
  • OS: Linux (Ubuntu)

** Developer Tools Console Output **

Additional context
Add any other context about the problem here.

@isbor isbor added the bug Something isn't working label Feb 19, 2021
@Shelex
Copy link
Owner

Shelex commented Feb 19, 2021

@isbor Thanks for opening an issue. Seems like the issue is from cypress-cucumber-preprocessor feature hide pending scenarios not working with afterEach hook and published within scope of v2.4.0.

When I set cypress-cucumber-preprocessor to 2.3.1 - it is working fine.

Related issues:

Unfortunately, that cannot be addressed from this plugin.

@Shelex Shelex closed this as completed Feb 19, 2021
Shelex pushed a commit to Shelex/cypress-allure-plugin-example that referenced this issue Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants