fauxalgore/behat-say-extension
Composer 安装命令:
composer require fauxalgore/behat-say-extension
包简介
Hear your Behat steps through the 'say' command.
README 文档
README
This Behat Extension uses the say command to speak aloud your Behat steps as they run.
Configuring
This extension takes configuration for a default voice. Voices can also vary based on the (Drupal) user role. Enable the extension by adding the following to your behat.yml file.
FauxAlGore\BehatSayExtension:
default_voice: Fiona
roles:
administrator: Pipe Organ
content_administrator: Alex
Adapt the configuration to use whichever say voices you prefer. To see a list of all available voices run say --voice=\?
Benefits
By speaking your Behat commands aloud, this extension highlights poorly constructed Behat steps. Behavior Driven Development encourages using domain-specific language. If your steps are written around CSS selectors, they will sound absurd.
Additionally, varying voices by user role will encourage deeper consideration of the role used for a given scenario.
统计信息
- 总下载量: 41
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-04-24