运行 phpunit 提示 No tests executed 解决方法
LaraBBS目录下执行phpunit,提示没有安装,于是安装
apt install -y phpunit
执行phpunit提示No tests executed
发现其实laravel 5.5集成了PHPUnit,在./vendor/bin/phpunit,于是进行下面操作
# remove安装的phpunit
apt remove phpunit
# 添加软链接
ln -s /var/www/html/LaraBBS/vendor/bin/phpunit /usr/bin/phpunit
# LaraBBS目录下执行
phpunit
成功
提示:Google 有说要安装6.0+版本的phpunit,5.×版本会出现这种提示,没有验证,不太清楚,larabbs 5.5 集成PHPunit版本为 6.5.7
推荐文章: