drupal-operations / drush-behat-params
为behat预配置BEHAT_PARAMS的Drush命令包装器。
2.1.0
2024-01-25 15:22 UTC
Requires
- php: >=5.6
- consolidation/site-alias: ^3 || ^4
- consolidation/site-process: ^2.1 || ^4 || ^5
Requires (Dev)
- composer/installers: ^1.2
- drupal/core-composer-scaffold: ^8.8.1
- drupal/core-recommended: ^8.8
- drush/drush: ^8
- g1a/composer-test-scenarios: ^3.0.2
- pantheon-systems/drupal-integrations: ^8
- phpunit/phpunit: ^6.5
- symfony/filesystem: ^3.4.28
- webflo/drupal-finder: ^1.1.0
- webmozart/path-util: ^2.3
- zaporylie/composer-drupal-optimizations: ^1.0.2
- 2.x-dev
- 2.1.0
- 2.1.0-beta4
- 2.1.0-beta3
- 2.1.0-beta2
- 2.1.0-beta1
- 2.0.0-beta15
- 2.0.0-beta14
- 2.0.0-beta13
- 2.0.0-beta12
- 2.0.0-beta11
- 2.0.0-beta10
- 2.0.0-beta9
- 2.0.0-beta8
- 2.0.0-beta7
- 2.0.0-beta6
- 2.0.0-beta5
- 2.0.0-beta4
- 2.0.0-beta3
- 2.0.0-beta2
- 2.0.0-beta1
- 1.x-dev
- 1.10.0-alpha11
- 1.10.0-alpha10
- 1.0.0
- dev-feature/pantheon-settings
- dev-feature/tasks
- dev-feature/scripts
- dev-feature/composer-project-bins
- dev-feature/remove-drupal-projects
- dev-bug/drupal-project-auto-create
This package is auto-updated.
Last update: 2024-09-11 16:19:38 UTC
README
一个基本的drush插件,它使用自动设置的URL、根和drush别名调用behat并带有BEHAT_PARAMS
。
用法
-
使用composer安装
composer require operations/drush-behat-params`
-
使用drush运行
drush behat
或者
drush @alias behat
确保DRUSH_OPTIONS_URI
值已设置,以便behat测试正确的URL。
注意:为了在Lando上轻松设置DRUSH_OPTIONS_URI
,请参阅https://github.com/operations-platform/drupal-settings。
远程别名
您可以使用此命令通过Drush Site Aliases从本地运行远程站点的测试。
例如,如果您有一个名为@test
的别名,您可以通过以下方式在其上运行behat测试
$ drush @dev behat
------------- ---------------------------------------- -----------
Drush Alias URL Root
------------- ---------------------------------------- -----------
@self test-projectcode.pantheonsite.io /code/web
------------- ---------------------------------------- -----------
....
是什么?
Behat使用硬编码的配置或BEHAT_PARAMS中的JSON blob来配置要测试的网站。
而不是与ENV变量纠缠,此插件使用Drush别名信息为您设置BEHAT_PARAMS。
开发
此工具是Drupal Operations Project的一部分。
源代码维护在https://git.drupalcode.org/project/operations/-/tree/1.x/drush/Commands/contrib/drush-behat-params
可以在https://www.drupal.org/project/issues/operations?categories=All提交问题。