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
phpunit
phpunit.xml
With Laravel phpunit is set up right out of the box. The easiest way to run it on Windows is to add an entry to scripts in your package.json file...
"scripts": { ... "tests": "php vendor/phpunit/phpunit/phpunit" },
Now you simply run unit tests with
npm run tests