oneshoe / drupal-codeception
Extension to the Codeception toolset for Drupal testing.
Installs: 9 254
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 2
Open Issues: 0
Type:package
Requires
- ext-json: *
- drupal/test_users: ^1.0
- drush/drush: ^10.3 | ^11
- guncha25/drupal-codeception: ^9.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-17 15:34:32 UTC
README
Extension to the Codeception toolset for Drupal testing.
Adding to your project
Require oneshoe/drupal-codeception:dev-master
.
Configuring Codeception
To add to Codeception, make the following changes to your test suite files. The OSDrupalAcceptance depends on several other modules. These need to be added to the suite explicitly, and in the correct order, or they may not be found yet when they are needed.
acceptance.suite.yml
modules:
enabled:
- WebDriver
# Refer to https://codeception.com/docs/modules/WebDriver for
# configurarion instructions.
# ...
- DrupalDrush
- DrupalAcceptance
- OSDrupalAcceptance:
rootUser: [name of the root (uid 1) user]
rootPassword: [password for that user]
Development
For development you can use Lando. Start Lando with lando start
. Then
install a development environment by running run lando composer install
and
lando clean-install
. Run the test suite (verifying the Codeception module)
using lando codecept
(this is just a way to running the regular codecept
command within Lando).