简体   繁体   English

phpunit / xdebug中0%类的代码覆盖率

[英]0% Classes code coverage in phpunit/xdebug

I'm using PHPUnit/Xdebug for running unit tests and although my Methods and Lines coverage percentile is in the 90s, Classes always reads as 0%. 我正在使用PHPUnit / Xdebug来运行单元测试,尽管我的方法和行覆盖率百分位数在90年代,但类始终读取为0%。 How is the classes coverage determined and is there something special I need to define to trigger it? 如何确定班级覆盖率,我需要定义一些特殊的东西来触发它吗?

Thanks 谢谢

通过反复试验,我确定该类的“方法”和“行”覆盖率达到100%时,该类便会开始计时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM