您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
phpunit-colors属性的开启(命令行中用auto)
发布时间:2021-10-09 21:08:03编辑:雪饮阅读()
上篇了解了phpunit在命令行中也可对phpunit.xml中的phpunit标签中配置的colors属性配置为true的情况下通过never来关闭某个测试的测试结果上色。
那么同样的,如果全局配置phpunit.xml中phpunit标签中没有配置colors值为true。同样也是可以通过命令行中以auto的值来单独对某个命令行的测试结果进行上色。
C:\Users\Administrator>D:\phpstudy_pro\Extensions\php\php7.4.3nts\php.exe C:\Users\Administrator\PhpstormProjects\untitled\vendor\phpunit\phpunit\phpunit -c C:\Users\Administrator\PhpstormProjects\untitled\organizing\phpunit.xml C:\Users\Administrator\PhpstormProjects\untitled\organizing\tests\MyTest.php --colors=auto
关键字词:phpunit,colors,auto