brainsum/drupal-behat-testing
Composer 安装命令:
composer require brainsum/drupal-behat-testing
包简介
Drupal testing with Behat.
README 文档
README
@todo: Finish.
Setup
Docker
Use Docker 4 Drupal
Drush 9
Create a drush/sites folder with self.sites.yml and add:
docker-local: root: /var/www/html/web uri: 'http://nginx'
Start
@todo: Add helper scripts.
docker-compose <docker-compose.yml for project> <docker-compose.selenium.yml from this package> up -d- Wait for your site and selenium to spin up (shouldn't take long, a few seconds at most)
docker-compose <docker-compose.yml for project> <docker-compose.selenium.yml from this package> exec php sh -c "cd tests/behat && ../../vendor/bin/behat --out=std --config <your behat.yml> --stop-on-failure --verbose"
Advanced usages
Context DI
For some info about DI in contexts, see the DI.md doc.
统计信息
- 总下载量: 148
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2019-04-09