<i id='RFUn1'><tr id='RFUn1'><dt id='RFUn1'><q id='RFUn1'><span id='RFUn1'><b id='RFUn1'><form id='RFUn1'><ins id='RFUn1'></ins><ul id='RFUn1'></ul><sub id='RFUn1'></sub></form><legend id='RFUn1'></legend><bdo id='RFUn1'><pre id='RFUn1'><center id='RFUn1'></center></pre></bdo></b><th id='RFUn1'></th></span></q></dt></tr></i><div id='RFUn1'><tfoot id='RFUn1'></tfoot><dl id='RFUn1'><fieldset id='RFUn1'></fieldset></dl></div>

    1. <tfoot id='RFUn1'></tfoot>
    2. <legend id='RFUn1'><style id='RFUn1'><dir id='RFUn1'><q id='RFUn1'></q></dir></style></legend>
        <bdo id='RFUn1'></bdo><ul id='RFUn1'></ul>

      <small id='RFUn1'></small><noframes id='RFUn1'>

      确保对新 Subversion 提交的覆盖最小化

      Ensure minimal coverage on new Subversion commits(确保对新 Subversion 提交的覆盖最小化)

          <tbody id='DZHgQ'></tbody>

        <small id='DZHgQ'></small><noframes id='DZHgQ'>

      1. <tfoot id='DZHgQ'></tfoot>
          <i id='DZHgQ'><tr id='DZHgQ'><dt id='DZHgQ'><q id='DZHgQ'><span id='DZHgQ'><b id='DZHgQ'><form id='DZHgQ'><ins id='DZHgQ'></ins><ul id='DZHgQ'></ul><sub id='DZHgQ'></sub></form><legend id='DZHgQ'></legend><bdo id='DZHgQ'><pre id='DZHgQ'><center id='DZHgQ'></center></pre></bdo></b><th id='DZHgQ'></th></span></q></dt></tr></i><div id='DZHgQ'><tfoot id='DZHgQ'></tfoot><dl id='DZHgQ'><fieldset id='DZHgQ'></fieldset></dl></div>

              <bdo id='DZHgQ'></bdo><ul id='DZHgQ'></ul>

            • <legend id='DZHgQ'><style id='DZHgQ'><dir id='DZHgQ'><q id='DZHgQ'></q></dir></style></legend>
                本文介绍了确保对新 Subversion 提交的覆盖最小化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我们有一个庞大的项目,几乎没有单元测试.从现在开始,我想确保开发人员在提交新功能(或错误!)时不会覆盖相应的单元测试.

                We have a massive project with almost no unit tests at all. I would like to ensure from now on that the developers commit new features (or bugs!) without minimal coverage for corresponding unit tests.

                有什么方法可以强制执行?

                What are some ways to enforce this?

                我们使用很多工具,所以也许我可以使用插件(jira、greenhopper、fisheye、sonar、hudson).我还在考虑可能是 Subversion 预提交挂钩、jira 的提交接受插件或类似的东西.

                We use many tools, so perhaps I can use a plugin (jira, greenhopper, fisheye, sonar, hudson). I was also thinking perhaps a Subversion pre-commit hook, the Commit Acceptance Plugin for jira, or something equivalent.

                想法?

                推荐答案

                Sonar(顺便说一句很棒的工具)与 构建破坏者 插件可以在某些指标不符合指定规则时破坏您的 Hudson 构建.您可以在 Sonar 中设置这样的规则,当覆盖率低于给定点时会触发警报(最终导致构建失败).唯一的缺点是您可能希望覆盖范围扩大,因此您必须记住每天将警报级别提高到当前值.

                Sonar (wonderful tool by the way) with Build breaker plugin can break your Hudson build when some metrics don't meet specified rules. You can setup such a rule in Sonar that would trigger an alert (eventually causing the build to fail) when the coverage is below given point. The only drawback is that you probably want the coverage to grow, so you must remember to increase the alert level every day to the current value.

                这篇关于确保对新 Subversion 提交的覆盖最小化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                    <tbody id='Yq5Gn'></tbody>
                      <bdo id='Yq5Gn'></bdo><ul id='Yq5Gn'></ul>
                    • <legend id='Yq5Gn'><style id='Yq5Gn'><dir id='Yq5Gn'><q id='Yq5Gn'></q></dir></style></legend>

                      <small id='Yq5Gn'></small><noframes id='Yq5Gn'>

                        <tfoot id='Yq5Gn'></tfoot>
                        <i id='Yq5Gn'><tr id='Yq5Gn'><dt id='Yq5Gn'><q id='Yq5Gn'><span id='Yq5Gn'><b id='Yq5Gn'><form id='Yq5Gn'><ins id='Yq5Gn'></ins><ul id='Yq5Gn'></ul><sub id='Yq5Gn'></sub></form><legend id='Yq5Gn'></legend><bdo id='Yq5Gn'><pre id='Yq5Gn'><center id='Yq5Gn'></center></pre></bdo></b><th id='Yq5Gn'></th></span></q></dt></tr></i><div id='Yq5Gn'><tfoot id='Yq5Gn'></tfoot><dl id='Yq5Gn'><fieldset id='Yq5Gn'></fieldset></dl></div>