Laravel 5: PHPUnit and no code coverage driver available

前端 未结 8 685
深忆病人
深忆病人 2020-12-25 09:49

I would like to use PHPUnit to create code coverage reports. I have tried a lot of installation setups found on the web. But nothing seems to work out.

I use the lat

8条回答
  •  难免孤独
    2020-12-25 09:54

    It seems like you are missing the Xdebug extension. If you're using homebrew you can install it like:

    brew install php70-xdebug
    

    After that, don't forget to edit your php.ini file to enable the extension.

    php -i | grep xdebug
    

    After checking that xdebug is enabled you should be able to do code coverage

提交回复
热议问题