behat / drupal-propeople-context
Drupal context by Propeople for Behat
Installs: 6 985
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 4
Open Issues: 2
Type:behat-extension
pkg:composer/behat/drupal-propeople-context
Requires
- php: >=5.4
- drupal/drupal-extension: ~3.0
README
Behat context by Propeople
The Propeople Drupal Context provide a flexible methods for testing websites, running on Drupal 7. The contexts in this repository extend the contexts of DrupalExtension.
Installation
- Install Composer.
- Navigate to folder with your Drupal project. Would be better if a project has the similar structure:
/project_name
|-- docroot
| |-- [drupal installation without any custom files]
| |-- [...]
|-- [another folders and files e.g. tests, scripts etc.]
|-- [...]
- Create the
composer.jsonfile:
{
"require": {
"behat/drupal-propeople-context": "~1.2"
},
"config": {
"bin-dir": "bin/"
},
"scripts": {
"post-install-cmd": "mv bin/bdpc bin/behat"
}
}
- Execute the
composer installcommand. - Initialize the basic context and configuration by executing the
bin/behat --init --url=http://example.com. Also, command can take thedirparameter if the Drupal installation located above current folder. For examplebin/behat --init --url=http://project.loc --dir=docroot. - Configure the
behat.ymlif needed. - Read the documentation about creating the features.