oneshoe / drupal-codeception
Drupal测试工具集的扩展。
1.0.0
2023-05-03 13:25 UTC
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-09-17 15:03:50 UTC
README
Drupal测试工具集的扩展。
添加到您的项目
需要 oneshoe/drupal-codeception:dev-master
。
配置Codeception
要将Codeception添加到测试套件,请对测试套件文件进行以下更改。OSDrupalAcceptance依赖于几个其他模块。需要明确地将这些模块添加到套件中,并且 按正确的顺序,否则在需要时可能无法找到它们。
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]
开发
对于开发,您可以使用Lando。通过运行 lando start
启动Lando。然后运行 lando composer install
和 lando clean-install
来安装开发环境。使用 lando codecept
运行测试套件(验证Codeception模块)(这只是在Lando中运行常规codecept命令的一种方式)。