Reputation: 195
I've recently installed laravel and have written some tests in /tests directory but when I use phpunit at cmd in the same folder that phpunit.xml exists, it says 'vendor' is not recognized as an internal or external command I'm using windows 10. what should I do?
Upvotes: 14
Views: 12267
Reputation: 134
Please try this command for windows:
php vendor/phpunit/phpunit/phpunit
Upvotes: 10
Reputation: 687
This is linux based code..
$ vendor/bin/phpunit
Try this for windows..
vendor\bin\phpunit
Upvotes: 52
Reputation: 3912
Install dependencies via composer
$ composer update
Run tests
$ vendor/bin/phpunit
Upvotes: 1