lakedrops/behat4drupal
Composer 安装命令:
composer require lakedrops/behat4drupal
包简介
Composer Plugin to prepare Drupal project for Behat tests.
关键字:
README 文档
README
This composer plugin prepares your Drupal project for Behat tests.
Requirements
The plugin works with any composer based Drupal project and can be added to such projects with composer require lakedrops/behat4drupal. It's recommended to also use the Docker4Drupal plugin (added with composer require lakedrops/docker4drupal) which will provide all the Docker containers for your development environment as well as those for Selenium and Chrome.
If your project is based on either Drupal 8 Project Template or Drupal 9 Project Template, then everything is already included for you automatically.
Usage
You will find links to further documentation on how to write Behat tests at the end of this file. Here we simply describe on how you can run your tests once they have been defined.
Command line
The easiest way to run Behat tests is to use the prepared Ahoy commands. Just call a behat to get a list of all available commands. In the background, they call the same commands that are described in detail in the following paragraphs.
You need to execute Behat inside of the PHP Docker container. From the root of your project you can launch the containers with docker-compose up -d and then enter the PHP container with docker-compose exec --user root php sh.
Inside of the container you'll be located at /var/www/html and in that directory you can run the Behat test suite with the command vendor/bin/behat --no-interaction --config /var/www/html/tests/behat/behat.yml
PhpStorm
In any of the JetBrains IDEs you can call the Behat tests directly from the UI when preparing the project in 2 steps beforehand:
- Configure the PHP CLI interpreter: Go to the project settings in Languages & Frameworks > PHP and configure the remote PHP interpreter for Docker similar to this screenshot

- Configure the Run/Debug Configuration: Simply select Behat and of you go, see this second screenshot

Links
For more details we recommend the following links:
- Behat Documentation
- Others
lakedrops/behat4drupal 适用场景与选型建议
lakedrops/behat4drupal 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19.38k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 09 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Behat」 「development」 「drupal」 「docker」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 lakedrops/behat4drupal 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lakedrops/behat4drupal 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 lakedrops/behat4drupal 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Behat Context for testing Symfony Api
A Behat Extension that allows custom bootstrapping
Environment processor and contexts autoloader
Provides access to magento2 object manager from behat and allows to change magento config settings temporarly
Provides an add-on purchasable entity.
Debugging a problem and need to login as one of your customers? This allows you to authenticate as any of your customers.
统计信息
- 总下载量: 19.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2018-09-12