2017 © Pedro Peláez
 

library whats-changed

Run PHPUnit tests on only classes and tests which have changed

image

icyapril/whats-changed

Run PHPUnit tests on only classes and tests which have changed

  • Thursday, May 18, 2017
  • by IcyApril
  • Repository
  • 4 Watchers
  • 43 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

What's Changed?

Run PHPUnit tests only on files which have changed. Useful during development stages when working with codebases with huge test suites., (*1)

How to use

  1. Make sure your project is set-up with Git
  2. Pull in through Composer
  3. Run ./vendor/bin/whatschanged
  4. Magic!

Conditions

  • Only works with files ending with .php
  • Assumes your classes are in src and tests are mapped in the exact file structure in the tests folder.
  • If a Unit Test in the tests folder is changed, that test is re-run
  • Files which are monitored are those which are changed in the working tree since your last commit and those modified in the previous commit

Examples

If src/Git.php is changed we look for a test suite in tests/GitTest.php, if the test tests/GitTest.php is changed we run that test., (*2)

Note

  • I wrote this in a few hours overnight once
  • This doesn't support Windows
  • You should run all your tests at least once before you merge your code in. This tool is purely to aid development whilst working with a large set of tests.

The Versions

18/05 2017

dev-master

9999999-dev

Run PHPUnit tests on only classes and tests which have changed

  Sources   Download

BSD-3-Clause

The Requires

 

18/05 2017

v1.0.1

1.0.1.0

Run PHPUnit tests on only classes and tests which have changed

  Sources   Download

BSD-3-Clause

The Requires

 

14/05 2017

v0.0.1

0.0.1.0

Run PHPUnit tests on only classes and tests which have changed

  Sources   Download

BSD-3-Clause

The Requires

 

14/05 2017

v1.0.0

1.0.0.0

Run PHPUnit tests on only classes and tests which have changed

  Sources   Download

BSD-3-Clause

The Requires