Gammer
Gammer

Reputation: 5608

Laravel 5.2 Testing : Test is not running

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 ?

Upvotes: 3

Views: 941

Answers (1)

Alexey Mezenin
Alexey Mezenin

Reputation: 163798

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/

Upvotes: 7

Related Questions