undertext/idrupalextension
Composer 安装命令:
composer require undertext/idrupalextension
包简介
Isolated Drupal extension for Behat
README 文档
README
This behat extension is intended to work together with Drupal Extension and uses Drupal multisite possibilities in order to run tests on separate test site installation.
It works much more like Drupal's BrowserTest.
If you have a Drupal site and run a behat command then :
- A new site will be created at
sites/simpletest/{timestamp}with an SQLite database and with given in configuration profile name. - Behat tests will run on this new installation.
- At the end of testing,
sites/simpletestdirectory will be cleaned up ifreuse_installationconfiguration value isn't set to TRUE.
Requirements
This extension is tested with Drupal 8.6.
Previous versions are not supported.
Quick start
Modify your behat.yml, add next lines :
extensions: Drupal\DrupalExtension: ... ... undertext\idrupalextension\IsolatedDrupalExtension: profile: "standard" reuse_installation: TRUE
This extension provides 2 configurable parameters:
- profile : name of the profile to install
- reuse_installation: do not reinstall test site installation each time if set to TRUE
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-12-28