Skip to content

appbackr/watchr-phpunit-yii-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Using the watchr gem with PHPUnit on the Yii framework

What does it do?

Watchr is a Rubygem to monitor file changes. It can run your unit tests (or pretty much anything else you want) on the changed files.

This script is set up to perform the entire test suite in the 'unit/' folder of the Yii PHP framework every time a .php file in the Yii folder has changed. It uses growl notifications (growlnotify) to display a green OK or a red X to signal if the tests succeeded or failed.

Growl might be Mac OS X only. There might be similar notification service apps on other platforms.

Requirements

Installation

  1. Install all the requirements
  2. Copy the watchr.rb script in the root of your Yii application (the one with the subfolders and framework).
  3. Copy the .watchr_images folder into your home folder.
  4. Run 'watchr watchr.rb' in the root of your Yii application.

Todo

For big test suites, it would be nice to only perform tests on the files that have actually changed. In my project, this is currently not an issue, as the entire test suite runs in a few seconds. If anyone wants to implement that, I'd be interested.

About

Config script for using the watchr gem with PHPUnit on Yii

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages