3

I have create a test via terminal with command :

php artisan make:test UserTest

Now i want to run the test with the following command :

vendor/bin/UserTest

But it returns

bash: vendor/bin/UserTest: No such file or directory

PHPunit is Installed. I have checked.

Am i missing something ?

Gammer
  • 5,194
  • 17
  • 65
  • 111
  • You should just be able to do `phpunit` in your root Laravel directory. You don't bash PHP files. – Josh May 07 '16 at 09:05

1 Answers1

7

Run tests with this command from Laravel root project directory:

vendor/bin/phpunit

If you want to run custom package tests, use:

vendor/bin/phpunit packages/name/package/
Alexey Mezenin
  • 148,626
  • 22
  • 267
  • 261