esler/phpunit-graceful-interrupt

Allow gracefully interrupt running PHPUnit tests

v3.0 2020-06-29 07:49 UTC

This package is auto-updated.

Last update: 2021-09-27 15:05:36 UTC


README

A simple plug-in which allows to you interrupt running PHPUnit tests gracefully.

Instalation

composer require --dev esler/phpunit-graceful-interrupt

Add listener to your phpunit.xml

<phpunit>
  <listeners>
    <listener class="Esler\PHPUnit\Listener\GracefulInterruptListener" />
  </listeners>
</phpunit>

Usage

Just hit Ctrl+\ to interrupt running tests. Errors and failures from previous tests will be shown.

More info.

License

MIT