News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Joshua Thijssen:
Realtime PHPUnit
February 05, 2014 @ 09:22:52

Joshua Thijssen has a new post to his site sharing an interesting tool for those using PHPUnit for testing. It's a real-time plugin that executes your tests as soon as something in your files change.

Not all IDEs (actually, i haven't seen even one IDE that does this), can run your unit-tests as soon as something changes. Inspired by Greg Young's Mighty Moose system, the following script runs inside a shell, will wait for changes in your PHP-files, and runs the corresponding unit-test as soon as something changes. It doesn't run the WHOLE unit-tests suite, but merely the test that matches up the source file.

His tool, found here on Github and uses a simple bash script that uses the file name being saved to locate the matching test and execute it, reporting back any errors that might have popped up. This could easily be hooked into most IDEs out there and keep the developer in one place.

0 comments voice your opinion now!
realtime phpunit bash script

Link: https://www.adayinthelifeof.nl/2014/02/02/realtime-phpunit/

blog comments powered by Disqus

Similar Posts

Chris Hartjes' Blog: Snakes and Elephants Playing Nice Together: PHPUnit and py.test with Hudson

Lars Tesmer's Blog: How to Unit Test a Class Making Calls to an URL (or the Filesystem) With PHPUnit

Sebastian Bergmann's Blog: PHP-GTK2 Testrunner for PHPUnit

Jeremy Cook's Blog: Making PHPUnit, Doctrine & MySQL Play Nicely

Sebastian Bergmann's Blog: PHPUnit Status Update


Community Events





Don't see your event here?
Let us know!


code list install laravel threedevsandamaybe podcast configure opinion testing series introduction refactor framework release wordpress unittest interview community language developer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework