wohlie/behat-environment
Composer 安装命令:
composer require wohlie/behat-environment
包简介
Behat extension to provide environment specific information in a context classes.
README 文档
README
Allows to inject the current project environment into a context. The extension currently only supports the version number.
The project environment can be extracted from the following resources:
package.json- The version will be extracted from the object key
version
- The version will be extracted from the object key
composer.json- The version will be extracted from the object key
version
- The version will be extracted from the object key
*.property- The version will be extracted from the key
artifact.version
- The version will be extracted from the key
Usage
-
Install it:
$ composer require wohlie/behat-environment
-
Enable this extension and configure Behat to use it:
# behat.yml default: # ... extensions: Wohlie\Behat\Environment: property_file: '%paths.base%/package.json'
The parameter property_file is required.
- Implement the interface
\Wohlie\Behat\Environment\Context\EnvAwareContextin your context class to get the environment object.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-24