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

Gherkin cache invalid since v4.5 #128

Closed
mihaeu opened this issue Sep 13, 2017 · 7 comments
Closed

Gherkin cache invalid since v4.5 #128

mihaeu opened this issue Sep 13, 2017 · 7 comments

Comments

@mihaeu
Copy link

mihaeu commented Sep 13, 2017

Hey everyone, thanks for this awesome project!

We noticed that our Behat tests on Jenkins were slowly dying and after a couple of hours of debugging we noticed that the problem has something to do with outdated caches since the 4.5 update.

What happened was that you could run the whole unit as one, but when you tried to launch a single .feature file Behat was unable to find any specifications.

I deleted the caches and downgraded to Gherkin v4.4 and everything is back to normal. Did we miss something or was there a breaking change?

Cheers,
Mike

@pfrenssen
Copy link
Contributor

I'm having the same issue. I cannot run individual tests, getting this error:

 [Behat\Testwork\Tester\Exception\WrongPathsException]                                                                                           
  No specifications found at path(s) `features/authentication.feature`. This might be because of incorrect paths configuration in your `suites`.

@pfrenssen
Copy link
Contributor

Note for people who may not be able to run their tests even after rolling back to 4.4.5: delete the Gherkin cache, this is located in your temporary storage, e.g. in /tmp/behat_gherkin_cache/ or similar.

@pfrenssen
Copy link
Contributor

I've been experimenting with this. The bug is apparently not in behat/gherkin but in behat/behat. The bug only occurs if I am using Behat 3.4.0, regardless of the version of Gherkin.

@pfrenssen
Copy link
Contributor

I did a git bisect and the bug was introduced in this commit from behat/behat: Behat/Behat@08802b7

This was part of Behat/Behat#1056. We should move this discussion to behat/behat.

@pfrenssen
Copy link
Contributor

pfrenssen commented Sep 14, 2017

It appears that the bug is in Gherkin after all. I proposed a fix in #129 but this needs some input because I am looking at the Gherkin code base for the first time and don't know its architecture.

@kwoxer
Copy link

kwoxer commented Jan 18, 2018

Thanks. Indeed this is a version Issue. For me it worked to have this version setup active:
"behat/behat": "3.3.0",
"behat/gherkin": "4.4.5",
"drupal/drupal-extension": "3.3.0",
"behat/symfony2-extension": "2.1.1"

@phil-davis
Copy link
Contributor

Is this fixed by #166 release 4.6.2 ?

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

5 participants