lain/laravel-test-generator
最新稳定版本:v1.0.3
Composer 安装命令:
composer require lain/laravel-test-generator
包简介
Laravel package for generating api test automatically
关键字:
README 文档
README
Laravel package for generating api test automatically.
Installation
$ composer require lain/laravel-test-generator
Configuration
Copy the package config to your local config with the publish command:
$ php artisan vendor:publish --tag=test-generator
This will add a new config to config/test-generator.php:
return [ 'get_token' => 'app(Helper::class)->getAccessTokenForEmailToOrg()', ];
Usage
Create test-swagger.json in your project root directory, It contains the api tests that need to be created, Please make sure it conforms to OpenAPI format (swaager 3.0).
To do so, simply run php artisan test:generate TEST_FILE_NAME in your project root. This will write all the test cases into the file based on test-swagger json.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-27