Posted By

noah on 03/31/11


Tagged

php testing ruby TDD autotest automated continuous phpunit


Versions (?)

Watchr config for use with PHPUnit


 / Published in: Ruby
 

URL: https://github.com/mynyml/watchr

A simple Watchr config for running PHPUnit tests.

This will run a Pake task called "test" and ring the system bell if the task fails. Ringing the system bell is especially nice when running inside a GNU Screen session.

Installation

To install you need RubyGems. Then type:

    sudo gem install watchr
  1. # Run me with:
  2. # $ watchr -d scruffy.watchr
  3.  
  4. # --------------------------------------------------
  5. # Rules
  6. # --------------------------------------------------
  7. watch( '(.*(\.php|pakefile)$)' ) { |m|
  8. system %{pake test} or puts "\a"
  9. }
  10.  
  11.  
  12. # --------------------------------------------------
  13. # Signal Handling
  14. # --------------------------------------------------
  15.  
  16. Signal.trap('INT' ) { abort("\n") } # Ctrl-C

Report this snippet  

You need to login to post a comment.