Codaisseur / terminal-notifier-guard

Mac OS X User Notifications for Guard
Other
163 stars 25 forks source link

PHP Unit tests always failing #4

Closed ChrisKanger closed 11 years ago

ChrisKanger commented 11 years ago

When I run my unit tests the notifier will always show me that it's failing. The results I see in my console are:

Passed test: 16:37:50 - INFO - Running: app/tests/ExampleTest.php 16:37:50 - INFO - .

[#] [#] Finished in 0 seconds

Failing test: 16:37:59 - INFO - Running: app/tests/ExampleTest.php 16:37:59 - INFO - F

[#] [#] Failures: [#] [#] 1) ExampleTest::testBasicExample [#] Failed asserting that false is true. [#] # /Users/md096/Sites/liquidcms/app/tests/ExampleTest.php:13 [#] [#] Finished in 0 seconds

Somebody knows a fix for this?

codemoe commented 11 years ago

I`ve been having the same problem, looked all around on the web and through the code but i can't find what's wrong. Also noted that running phpunit by itself to perform the test return success so i'm sure that the problem is the way terminal-notifier-guard interprets the response of Guard

Anyone knows how to fix this or whats going on?

codemoe commented 11 years ago

[SOLVED] Finally found it!!!

Not me, but markstewie in the JeffreyWay / Laravel-Guard Repository commented on an error, followed his instructions and now everything works!

markstewie said

"For anyone interested... I finally tracked this down to a misspelled function call in the guard-phpunit-0.1.4 gem at ...../gems/guard-phpunit-0.1.4/lib/guard/phpunit/formatters/PHPUnit-Progress/PHPUnit/Extensions/Progress/ResultPrinter.php

Lines 250 & 256. The function calls to allCompletlyImplemented() are misspelled and should be allCompletelyImplemented().

Bizarre and frustrating. I lost a whole day trying to get to the bottom of this!!"

wearethefoos commented 11 years ago

Glad you found it :)