设置PHPUnit以记录代码覆盖率



我一直在搜索如何设置phpunitphpunit.xml来记录代码覆盖率报告,但我一直在寻找文档,如如何包含文件如何忽略代码块,等等,但没有设置它。我可以得到一些关于使用phpunit设置代码覆盖率的指导吗?

https://phpunit.de/manual/current/en/code-coverage-analysis.html指向https://phpunit.de/manual/current/en/textui.html以获取控制代码覆盖功能的命令行开关列表,并指向https://phpunit.de/manual/current/en/appendixes.configuration.html#appendixes.configuration.logging以获取相关配置设置。

https://thephp。Cc/dates/2015/05/php-tek/code-coverage-covered- depth是一个关于代码覆盖的演示,有很多例子。

最新更新