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

Scoped hooks aren't working in demo app #5

Closed
dchasepdx opened this issue Feb 7, 2019 · 2 comments
Closed

Scoped hooks aren't working in demo app #5

dchasepdx opened this issue Feb 7, 2019 · 2 comments

Comments

@dchasepdx
Copy link

It appears scoped hooks aren't working in the demo app. When you run all tests, the before hook that states it only runs during the Google tests is run during all tests.

Google test suite
googlenews

Facebook test suite
facebook

repro steps: clone the demo app, run cypress, and run all tests.

I was having issues with scoped step definitions in a project and I wanted to make sure it wasn't a weird configuration on my end. I'm wondering if this is a bug with scoped step definitions and if I should file an issue against the main repo.

Thanks

@lgandecki
Copy link
Member

Hello,

this is the problem described here:

badeball/cypress-cucumber-preprocessor#139
which is an acknowledged bug in cypress itself:

cypress-io/cypress#3323

I will add an info here to NOT use "run all" in the GUI - I don't think this is something worth doing anyway - once you have a realistic number of features, you wouldn't be running them all through GUI anyway (and it works properly when you do cypress run)

@dchasepdx
Copy link
Author

Thanks so much for the quick reply @lgandecki. I'm glad to hear it was just a problem with how I was running tests. I'll go ahead and close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants