English 中文(简体)
确保对新的颠覆承诺的覆盖面最小
原标题:Ensure minimal coverage on new Subversion commits

我们有一个大规模项目,几乎没有任何单位试验。 我愿从现在起确保开发商拥有新的特征(或!!),而不必对相应的单位测试进行最低限度的覆盖面。

如何执行?

我们使用许多工具,因此,或许我可以使用一种假想(吉拉、绿灯、鱼眼、月球、胡德森)。 我也想到的是,也许是一种排他性前 h、接受 Com子或相当的东西。

想法?

问题回答

你们想要做的是确定什么是新的法典,并核实新法典是否包含在某种试验中。

可以通过各种测试覆盖面工具确定一般的编码覆盖面。 许多测试覆盖面工具可以简单地改变你的全部应用,然后可以进行测试以确定覆盖面。

Our (Semantic Designs ) line of Test Coverage tools can determine, from a changed-file list, just the individual files that need to re-instrumented, and with careful test organization, just the tests that need to be reexecuted. This will minimize the cost of re-running your tests, and you ll still end with the same overall coverage data. (Actually, these tools detect what tests need to be made based on changes at the method level).

Once you have test coverage data, what you want to know is the the specifically new code is covered by some tests. You can do this sloppily with just test coverage data if you know which files changed, by insisting the changed files have 100% coverage. That probably doesn t work in practice.

您可以利用SD s 。 智能差异工具,以提供更准确的答案。 这些工具比较了两种语文档案,并说明了这些改动在使用语文合成物(如表达、声明、声明、方法、而不仅仅是改变的源线)和概念编辑业务(移动、复制、删除、插入、改称身份识别剂)的情况。 智能Differencer deltas往往比你从简单扩散工具中获得的钱少,也更重。

很容易从SartDifferencer的输出中提取一份线标清单。 可以将每一档案中的交叉点与测试覆盖面数据所涵盖的线进行对比。 如果改变的路线并非完全在规定的界限内,那么“新的”代码就没有经过测试,你可以提高旗帜,停止检查,或表示你的检查政策受到了违反。

测试和智能推算器工具没有从箱子中排出,而这种计算对你们来说是很方便的。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签