2017 © Pedro Peláez
 

library autotest

Automatically run phpunit after saving one of your project files.

image

stekel/autotest

Automatically run phpunit after saving one of your project files.

  • Saturday, June 23, 2018
  • by stekel
  • Repository
  • 0 Watchers
  • 0 Stars
  • 43 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 10 % Grown

The README.md

AutoTest

Automatically run unit tests when a project file is saved., (*1)

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., (*2)

  • 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, (*3)

php artisan stekel:autotest

Note: this will use the local phpunit ./vendor/bin/phpunit, (*4)

Generic

Run the following command from the root of a composer project with phpunit, (*5)

autotest

Note: this will use the global phpunit ~/.composer/vendor/bin/phpunit, (*6)

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., (*7)

Arguments & Flags

-f Filter: passed to phpunit as the --filter parameter, (*8)

-g Group: passed to phpunit as the --group parameter, (*9)

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

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

--localphpunit Force Local phpunit: forces the use of ./vendor/bin/phpunit as the phpunit location, (*12)

--globalphpunit Force Global phpunit: forces the use of ~/.composer/vendor/bin/phpunit as the phpunit location, (*13)

The Versions

23/06 2018

dev-dev

dev-dev

Automatically run phpunit after saving one of your project files.

  Sources   Download

MIT

The Requires

 

The Development Requires

24/05 2018

dev-master

9999999-dev

Automatically run phpunit after saving one of your project files.

  Sources   Download

MIT

The Requires

 

The Development Requires

24/05 2018

v0.6

0.6.0.0

Automatically run phpunit after saving one of your project files.

  Sources   Download

MIT

The Requires

 

05/12 2017

v0.5

0.5.0.0

Automatically run phpunit after saving one of your project files.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

04/12 2017

v0.4

0.4.0.0

Automatically run phpunit after saving one of your project files.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

21/10 2017

v0.3

0.3.0.0

Automatically run phpunit after saving one of your project files.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

06/10 2017

v0.2

0.2.0.0

Automatically run phpunit after saving one of your project files.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

04/10 2017

v0.1

0.1.0.0

Automatically run phpunit after saving one of your project files.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires