undertext / idrupalextension
Isolated Drupal extension for Behat
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/undertext/idrupalextension
Requires
- drupal/drupal-extension: ^4.0
This package is auto-updated.
Last update: 2025-10-06 16:35:31 UTC
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