guard-phpunit icon indicating copy to clipboard operation
guard-phpunit copied to clipboard

commands not found phpunit --version, phpunit --include-path, no continuos testing and tests always fail

Open longilineo opened this issue 11 years ago • 2 comments

using guard from terminal i get always this output:

20:51:25 - INFO - Guard uses TerminalNotifier to send notifications. 20:51:25 - INFO - Guard uses TerminalTitle to send notifications. /Library/Ruby/Gems/1.8/gems/guard-phpunit-0.1.4/lib/guard/phpunit.rb:58: command not found: phpunit --version 20:51:25 - INFO - Running all tests /Library/Ruby/Gems/1.8/gems/guard-phpunit-0.1.4/lib/guard/phpunit.rb:58: command not found: phpunit --include-path /Library/Ruby/Gems/1.8/gems/guard-phpunit-0.1.4/lib/guard/phpunit/formatters/PHPUnit-Progress --printer PHPUnit_Extensions_Progress_ResultPrinter --colors tests 20:51:25 - INFO -

20:51:26 - INFO - Guard is now watching at '/Applications/MAMP/htdocs/lesson'

Using 'terminal-notifier-guard', tests always fail. They pass only the first time i use guard after editing Guardfile, and re-testing isn't automatic.

longilineo avatar May 30 '13 19:05 longilineo

I get this also - did you find a solution? I'm also using MAMP: MAMP Pro.

russback avatar Jun 21 '13 20:06 russback

Found the problem. You need to add the path, for example on my Mac, adding the following to ~/.bash_profile:

export PATH=/path/to/where/you/have/installed/phpunit/vendor/bin:$PATH

Restart your terminal client and run guard again. Worked for me

russback avatar Jun 24 '13 06:06 russback