Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brainsum/drupal-behat-testing
Common Behat-related things for testing Drupal sites
https://github.com/brainsum/drupal-behat-testing
behat behat-contexts behat-extension brainsum drupal drupal-8 testing-tools
Last synced: about 1 month ago
JSON representation
Common Behat-related things for testing Drupal sites
- Host: GitHub
- URL: https://github.com/brainsum/drupal-behat-testing
- Owner: brainsum
- License: gpl-2.0
- Created: 2019-04-02T10:05:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T10:29:33.000Z (about 5 years ago)
- Last Synced: 2024-11-08T00:07:14.642Z (3 months ago)
- Topics: behat, behat-contexts, behat-extension, brainsum, drupal, drupal-8, testing-tools
- Language: PHP
- Homepage:
- Size: 142 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Behat for Drupal
@todo: Finish.
## Setup
### Docker
Use [Docker 4 Drupal](https://github.com/wodby/docker4drupal)
### Drush 9
Create a `drush/sites` folder with `self.sites.yml` and add:
```yaml
docker-local:
root: /var/www/html/web
uri: 'http://nginx'
```## Start
@todo: Add helper scripts.
- `docker-compose up -d`
- Wait for your site and selenium to spin up (shouldn't take long, a few seconds at most)
- `docker-compose exec php sh -c "cd tests/behat && ../../vendor/bin/behat --out=std --config --stop-on-failure --verbose"`## Advanced usages
### Context DIFor some info about DI in contexts, see the [DI.md](docs/DI.md) doc.