zorbus/behat-contexts
最新稳定版本:0.2.5
Composer 安装命令:
composer require zorbus/behat-contexts
包简介
Contexts for functional testing with behat
关键字:
README 文档
README
Contexts for Behat 3.
At the moment, just a Doctrine 2 context is included.
Instalation
composer require zorbus/behat-contexts
Example
Check the FeatureContext.php for an example on how to instantiate the database context.
In case you are using the Symfony2 extension, you can pass the services defined in the container, no need to create the connection and entity manager manually.
Check database.feature for a real example of the defined steps.
Usage
Tag your scenarios with @database to make clean the database.
Test
In the root of the package, run:
touch data/db.sqlite php vendor/bin/behat --suite=sqlite
统计信息
- 总下载量: 5k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-15