-
-
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
From the docs: features/bootstrap/FeatureContext.php is for testing the Drupal Extension itself #112
Comments
That comment is quite confusing. The intent there is to refer to the one that comes with the Drupal Extension itself-- In most examples I've read, custom contexts are not namespaced. We're about to do a docs cleanup, so I'll make sure that is clarified. |
And for Behat to pick this file up -- should I add something in |
Yes, unlike in Behat 2, the FeatureContext (or WhateverContext) must be specified in each suite: default:
suites:
default:
contexts:
- Drupal\DrupalExtension\Context\DrupalContext
- FeatureContext
- WhateverContext |
I think it's worth adding in the README .. :) |
I think I've added what was requested. If not, please reopen with concrete suggestions! Thanks for taking time to help improve this. |
So where should my FeatureContext.php exist? And how should I add it (i guess through
context
inbehat.yml
-- but an example with namespaces would be appreciated)The text was updated successfully, but these errors were encountered: