Maher4Ever/guard-phpunit — Issue #1: Not growling correctly: always 0/0 tests
Author: MPV
Created: 2012-02-02 08:31:48+00:00
State: open

Using the following Guardfile:

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

notification :growl

guard 'phpunit', :tests_path => 'tests/unit', :cli => '--colors --bootstrap tests/lib/InitTests.php --stderr' do
# Watch tests files
watch(%r{^.+Test\.php$})

# Watch library files and run their tests
watch(%r{^/(.+)\.php}) { |m| "tests/unit/#{m[1]}Test.php" }
end

It always growls the following result (with a green tick icon):

PHPUnit results
0 tests, 0 failures
in 0 seconds

Even though the terminal output might look like this:

$ guard
WARNING: You are using Guard outside of Bundler, this is dangerous and could not work. Using `bundle exec guard` is safer.
Guard uses Growl to send notifications.
Guard is now watching at '/Users/vs/Kod/Ticnet/MNXWEB'
Running all tests
PHPUnit 3.6.7 by Sebastian Bergmann.

............................F.......................

Time: 3 seconds, Memory: 28.00Mb

There was 1 failure:
...