phpUnit 配置选项

发布于 2024-08-14 19:43:35 字数 318 浏览 2 评论 0原文

以下选项是什么意思或者对

<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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

抚你发端 2024-08-21 19:43:35

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.

吃不饱 2024-08-21 19:43:35

从 3.7 版本开始(取自手册):

突出显示:设置为 true 时,覆盖率报告中的代码将语法突出显示。

lowUpperBound:被视为“低度”覆盖的最大覆盖百分比。

highLowerBound:被视为“高度”覆盖的最低覆盖百分比。

yui 是一个过时的选项,不再执行任何操作。我能找到的最新版本是 3.6

yui:使用 yui 库增强 html 覆盖率报告。例如,当您单击行号时,会出现一个 YUI 面板,其中包含涵盖该行的所有方法的列表。

As of the 3.7 release (taken from the manual):

highlight: When set to true, the code in your coverage reports is syntax highlighted.

lowUpperBound: Maximum coverage percentage to be considered "lowly" covered.

highLowerBound: Minimum coverage percentage to be considered "highly" covered.

yui is an outdated option and no longer does anything. The most recent release I can find with it still present is 3.6:

yui: Enhance html coverage report using the yui library. For example, when you click a line number, a YUI panel appears with a list of all methods which cover that line.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文