-
-
Notifications
You must be signed in to change notification settings - Fork 193
Correct --init and -dl command in docs
#354
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
base: 3.1
Are you sure you want to change the base?
Conversation
For me, the instructions didn't work as-is. **Expected results:** Running `bin/behat --init` & `behat -dl` would display the list of tests as the instructions say. **Actual results:** `bin/behat -dl` returning nothing.
jonathanjfshaw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we've got various example paths going on here:
sites/default/behat-tests
path/to/behat.yml
test-directory/features/FeatureContext.php
Can we standardise them all in line with the recommendation above:
sites/default/behat-tests
sites/default/behat-tests/behat.yml
sites/default/behat-tests/features/FeatureContext.php
Consistency would be really helpful
How's this? Behat is new to me, so I have only knowledge of what I encountered when I attempted to follow the installation instructions. Wasn't sure what to do about the file path in this text: _"The `features/FeatureContext.php` file must be in the same directory as your `behat.yml`"_
|
How's this? Behat is new to me, so I have only knowledge of what I encountered when I attempted to follow the installation instructions. Wasn't sure what to do about the file path in this text: "The Maybe the underlying issue is that the instructions probably assume that If so, my changes probably aren't the best path to take -- would probably be better to add a step like |
Yes that is the assumption, it would be a good idea to update the documentation with this suggestion. It is not a good practice to put the tests inside the web root though, so maybe just use a generic example like: |
|
For most sites in Drupal 8, the webroot will be a subdirectory of the project root (eg, |
--init and -dl command in docs
For me, the instructions didn't work as-is.
Expected results:
Running
bin/behat --init&bin/behat -dlwould display the list of tests as the instructions say.Actual results:
bin/behat -dlreturned nothing.