colee/yii2-gii
Composer 安装命令:
composer require colee/yii2-gii
包简介
gii library for Yii2 framework
关键字:
README 文档
README
================================== 安装:composer require colee/yii2-gii --prefer-dist
Model分层说明
common里分了三层
bases --- 基础层
models --- 实例方法层
cores --- 核心层,对外接口,静态方法为主
usage
在配置中添加
$config['modules']['gii']['generators'] = [ 'model' => [ 'class' => 'colee\gii\model\Generator' ], ];
夹具数据模版生产工具
usage
在配置中添加
$config['modules']['gii']['generators'] = [ 'fixtures' => [ 'class' => 'colee\gii\fixtures\Generator' ], ];
通过访问 http://127.0.0.1:8080/gii/fixtures 生成夹具模版
并前往模版编写写测试用例
生成假数据
tests/codeception/bin/yii fixture/generate teacher --count=100
运行测试用例:
cd tests/codeception/common/
codecept run
运行指定目录的case
codecept run .\unit\models\fixtures
运行指定文件的某个case
codecept run .\unit\models\LoginFormTest.php:testLoginNoUser
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-07