-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
How to configure behat tests properly with behat 3 and drupalextension 3.1 #255
Comments
Extending But now with the same thing, I cannot get the Mink session to instantiate. It just complains with a very unintuitive error message: I tried changing my behat.yml instead of what I had above (for the relevant section):
but mink still complains about not having an Mink instance. I still must be missing something pretty big in the instructions or documentation about Behat/MinkExtension/DrupalExtension. Every blog post seems to skip over actually instantiating a Mink session or assumes that it just works. |
I found a couple of issues with what I had done:
|
[jhedstrom#254] Replaced Travis with GitHub actions.
I must be missing something obvious as I have not been able to find any information regarding not recognizing any step definitions when running behat despite seeing all of DrupalExtension's step definitions with
behat -dl
. :(Is there somewhere else that I can look? Some configuration option I am missing that's not in the docs? Some behat/mink/whatever library I am missing? Missing namespaces? Autoload problems? I have no idea what to do next other than re-write everything myself which seems like the worst option.
I've tried running this within a vagrant virtual machine or outside of one, but I get the same result with
behat
:behat.yml
features/platform/anonymous.feature
features/bootstrap/FeatureContext.php
My test directory structure:
composer.json:
The text was updated successfully, but these errors were encountered: