您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
phpunit-colors属性的关闭(never)
发布时间:2021-10-09 21:01:43编辑:雪饮阅读()
上篇了解了colors可以在phpunit.xml中的phpunit标签中配置属性值为true则是可以将命令行中测试时候测试结果高亮上色。
那么有时候可能是全局需要colors在phpunit标签中配置为true,但是某个个别测试又想要关闭上色。则可以在命令行中用参数--colors=never。
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=never
关键字词:phpunit,colors,never