Command "test" is not defined in Lumen

  laravel, laravel-artisan, phpunit

When I run php artisan test, I get this error: Command "test" is not defined

In my require-dev I have phpunit, so deleted vendor folder and installed everything with composer install

"require-dev": {
    "phpunit/phpunit": "^9.3"

When I list artisan commands I can’t see anything related with test.

php artisan list

What am I missing? How can I run tests?

Source: Laravel

Leave a Reply