phpunit - Running tests in PhpStorm for Laravel Homestead vagrant VM -
i've got fresh installation of laravel homestead based on this: https://laravel.com/docs/master/homestead
and fresh new project using laravel new.
i'm trying run example tests through phpstorm's "run configurations" get
vagrant:///users/si/vagrant/homestead/usr/bin/php /home/vagrant/.phpstorm_helpers/phpunit.php --no-configuration /home/vagrant/code/homestead/tests testing started @ 00:49 ... process finished exit code 1 cannot find phpunit in include path (.:/usr/share/php)
in phpstorm phpunit settings have phpunit library loaded "use custom autoloader" pointing @ composer autoload.php file this:
/users/si/code/homestead/vendor/autoload.php
and composer has added phpunit executable @
/users/si/code/homestead/vendor/bin/phpunit
i'm confused why phpstorm can't find phpunit executable when i'm telling use composer autoload find it.
ok, fixed this. had added remote interpreter in php settings, still using 'local' settings in phpunit settings. added new phpunit settings configuration 'by remote interpreter' in languages , framdworks > php > phpunit settings screen.
i selected 'use custom autoloader' , specified following:
/home/vagrant/code/homestead/vendor/autoload.php
Comments
Post a Comment