stekel/autotest 问题修复 & 功能扩展

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

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

stekel/autotest

最新稳定版本:v2.0.4

Composer 安装命令:

composer require stekel/autotest

包简介

Automatically run phpunit after saving one of your project files.

README 文档

README

Automatically run unit tests when a project file is saved.

Requirements

  • PHP >= 7
  • PHPUnit >= 6 or Pest > 2
  • entr >= 3.4

Installation

  • Install entr
sudo apt-get install entr
  • Require it with Composer:
composer global require stekel/autotest

The autotest executable should now be located in the ~/.composer/vendor/bin/ directory.

  • Add this directory to your PATH in your ~/.bash_profile or ~/.bashrc
export PATH=~/.composer/vendor/bin:$PATH

Usage

Laravel

Run the following command from the root of a Laravel application

php artisan stekel:autotest

Note: this will use the local phpunit ./vendor/bin/phpunit

Generic

Run the following command from the root of a composer project with phpunit

autotest

Note: this will use the global phpunit ~/.composer/vendor/bin/phpunit

Your tests should run one time, after that autotest will run your tests every time a file within your project is saved. No more switching between your editor and a terminal.

Arguments & Flags

-f Filter: passed to phpunit as the --filter parameter

-g Group: passed to phpunit as the --group parameter

-d Directory: passed to phpunit as the directory argument, prepends './tests/'

--coverage Code Coverage: pending phpunit is configured to output code coverage reports, removes the --no-coverage flag

--localphpunit Force Local phpunit: forces the use of ./vendor/bin/phpunit as the phpunit location

--globalphpunit Force Global phpunit: forces the use of ~/.composer/vendor/bin/phpunit as the phpunit location

统计信息

  • 总下载量: 865
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固