TheRealHyveMind's avatar

Laravel 7, Test Command not working

Afternoon everyone,

Hope you're all doing well. I was just wondering if someone had any insight into exactly what is going wrong with my artisan command. Perhaps it's something simple I've missed and I've been at the desk too long.

I've just upgraded from Laravel 6 -> Laravel 7, and I'm running through making sure everything works. Attempting to run my tests works fine as usual when firing vendor/bin/phpunit but I noticed that apprently there is now php artisan test that can be run.

I've given that a shot, and it's not working. It's attempting to interpret it as make:test it seems, and isn't at all a fan.

I'm wondering if I've been an idiot and forgotten something. Hopefully someone here can lend a hand?

Notes:

  • Laravel v7
  • I've composer du and reset the artisan cache (php artisan optimize:clear)
  • When doing php artisan list it displays I am on Laravel 7, but doesn't show the test command in the list.
  • When running composer show phpunit/phpunit it confirms I am on v8.5

If you need anymore information, let me know.

Cheers!

0 likes
2 replies
bugsysha's avatar

Hard to tell what you've missed. That is why I use Laravel Shift for upgrades.

TheRealHyveMind's avatar

Nevermind - It's now running...

Not sure what was going on, I went for a smoke break and ran it again and now it's working. Weird.

Thanks @bugsysha for the recommendation on Laravel Shift. I'll certainly look into that for future upgrades!

Please or to participate in this conversation.