定制 sofa/laravel-test-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sofa/laravel-test-generator

Composer 安装命令:

composer require sofa/laravel-test-generator

包简介

Don't write boilerplate for your feature tests in a Laravel project

README 文档

README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Don't write boilerplate for your feature tests! This package scans all the routes in your Laravel app and generates skeleton for testing them.

Installation

You can install the package via composer:

composer require jarektkaczyk/package-laravel-test-generator-laravel

You can publish the config file with and customize it afterwards in config/test_generator.php:

php artisan vendor:publish --provider="Sofa\LaravelTestGenerator\LaravelTestGeneratorServiceProvider" --tag="config"

Usage

php artisan generate:feature-tests

Roadmap

  • support for PHPUnit driver
    • generate new test classes
    • bare happy path case
    • bare failing path case
    • parse route model binding and build setup for tests accordingly
    • (OPTIONAL) parse requests and build setup for tests accordingly - might be too complex in many cases
    • (OPTIONAL) update existing test classes with new methods (not trivial with nette/php-generator, find better way?)
  • support for different drivers
  • (OPTIONAL) other drivers

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email jarek@softonsofa.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固