phpUnit 配置选项
以下选项是什么意思或者对
<log type="coverage-html" target="./log/report" charset="UTF-8" yui="true" highlight="true"
lowUpperBound="50" highLowerBound="80"/>
- yui 来说是什么:我猜这意味着使用 yahoo ui 中的东西来使它看起来不错?
- 亮点:也许有一些颜色?
- lowUpperBound、highLowerbound:这些是什么?
what do the following options mean or whats it for
<log type="coverage-html" target="./log/report" charset="UTF-8" yui="true" highlight="true"
lowUpperBound="50" highLowerBound="80"/>
- yui: i guess it means use stuff from yahoo ui to make it look good?
- highlight: maybe have some colors?
- lowUpperBound, highLowerbound: whats these?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
lowUpperBound
= 您的想法,直到哪个百分比代码应被视为低。默认情况下,低于 35 的所有值都较低。您将低于 50 的所有内容指定为低,这意味着您的测试将更难摆脱困境。
highUpperBound
= 与 lowUpperBound 相同,但在您将其视为高覆盖率之前,覆盖率应具有最小百分比。默认情况下它是 70。因此,您再次使代码在统计上更难以合格。更多信息请参阅手册。
lowUpperBound
= your idea till which percentage code should be covered to be regarded as low.By default everything below 35 is low. You specified everything below 50 as low meaning your tests will be harder to get out of the red.
highUpperBound
= the same as lowUpperBound but for the minimum percentage the coverage should have before you regard it as high coverage. By default it is 70. So again you made your code statistically more difficult to qualify.More information is available in the manual.
从 3.7 版本开始(取自手册):
yui
是一个过时的选项,不再执行任何操作。我能找到的最新版本是 3.6:As of the 3.7 release (taken from the manual):
yui
is an outdated option and no longer does anything. The most recent release I can find with it still present is 3.6: