News Feed
Sections




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

Volker Dusch's Blog:
Running your Unittests everytime you save a file
December 23, 2010 @ 11:55:23

Volker Dusch has a suggestion for all of those developers out there really concerned about the quality of your code - consider running your unit tests every time you save a file with the help of a tool called PyWatch.

At the moment he placed the Idea in my head that i want my testsuite to run every time a file changes anyway, let someone else figure out how that is triggered. Well, someone did figure that out, thank you. It's called "PyWatch" and is a simple python script that monitors files for changes and executes a script if one has changed.

Obviously you wouldn't want to keep this going for larger code bases (the potential for overlap is horrible) but it could be quite useful when doing test-driven development to save yourself some hassle at the outset. He includes the commands you'll need to get things running and a simple PHP script that points the PyWatch instance to the correct files.

2 comments voice your opinion now!
unittest pywatch save file phpunit codecoverage


blog comments powered by Disqus

Similar Posts

Dutch Web Alliance: The definitive remote debug and unittest with PHPStorm guide: part 5

Tillate.com Blog: Unit test practice at tilllate.com

Sebastian Bergmann's Blog: Copy & Paste Detection in PHPUnit 3.2

Alvaro Videla: Using RabbitMQ in Unit Tests

Volker Dusch's Blog: Dealing with segfaults while PHPUnit code coverage generation for CI


Community Events





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


unittest voicesoftheelephpant library opinion podcast introduction api zendserver deployment series bugfix language release community interview package laravel symfony install framework

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