Home » Php » php – Laravel 6 phpunit returns No tests executed

php – Laravel 6 phpunit returns No tests executed

Posted by: admin February 25, 2020 Leave a comment

Questions:

Fresh Laravel 6 installation phpunit run returns:

No tests executed!

Laravel version is 6.15.1

How to&Answers:

What does your test file look like? Make sure to include the ‘test’ comment above your test to let phpunit know to run it.

  /** @test */
    public function a_user_can_view_apps()
    {}

Answer:

Found I had to run

vendor\bin\phpunit