PHPUnit - 'No tests executed' when using configuration file

后端 未结 22 733
故里飘歌
故里飘歌 2021-01-31 00:47

The Problem

To improve my quality of code, I\'ve decided to try to learn how to test my code using Unit Testing instead of my mediocre-at-best testing solutions.

22条回答
  •  心在旅途
    2021-01-31 01:37

    For me, using phpunit --debug showed me which test it was not executing, inside, I had

    $this->visit('/')
             ->see('Laravel');
    

    and I think because the directory was protected with .htaccess authentication, it could not get through to visit the page

    The solution for me was to take out this test (or most likely take out .htaccess authentication)

提交回复
热议问题