devinweb/laravel-test-parallel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

devinweb/laravel-test-parallel

Composer 安装命令:

composer require devinweb/laravel-test-parallel

包简介

a command to run your tests simultaneously across multiple processes to significantly reduce the time required to run the entire test suite.

README 文档

README

StyleCI Shield Total Downloads Latest Stable Version License

As you may know laravel parallel testing is already available on laravel v8.x, but this feature not exitst on the old versions 5.x, 6.x and 7.x, So this package is here to fix this gap and enjoy the parallel testing.

It's based on brianium/paratest and implements the same logic that handle the testing command used in laravel, developed by Nuno Maduro.

Requirement

This package requires

"phpunit/phpunit": "^9.5.1"

To update your phpunit package you can add this dev dependency on your composer.json

{
    ...

    "require-dev": {
       ...,
       "phpunit/phpunit": "^9.5.1"
   },

   ...
}

Then remove your composer.lock file and tell the composer to install all the dependencies using composer install.

Installation

You can install the package via composer:

composer require devinweb/laravel-test-parallel

This package will register itself automatically if your Laravel version 5.5+, through package auto-discovery.

Usage

To enjoy with the testing parallel run this command

php artisan test:parallel -p6

For more options you can run

php artisan test:parallel --help

Phpunit.xml

Make sure to update all <env .../> to <server .../> in your phpunit.xml file.

统计信息

  • 总下载量: 7.45k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固