2

我想知道你们中是否有任何 EMMA 用户遇到过这个问题。

基本上我有多个项目,每个项目都有不同的 build.xml ANT 脚本,这些脚本都是从一个主 ANT 脚本单独调用的。代码被适当地覆盖,但是当 JUnit 方法调用不同项目中的另一个方法时,EMMA 不会覆盖该外部方法调用。

有没有人遇到过这个问题?任何人都可以提供任何建议吗?

谢谢

4

2 回答 2

1

您确定将单元测试指向外部方法调用的检测类吗?

于 2009-02-09T12:02:44.737 回答
0

Can't help you with Emma. But what you need is a code coverage tool that can combine test coverage data from multiple projects into a coherent whole.

SD's test coverage tools (including the one for Java) can do this out of the box. This allows one to keep lots of "projects" that each make up a significant part of a much larger (meta)project (e.g., Eclipse!), and get a picture of coverage of the metaproject. We've uses this to handle systems with 45,000 compileable Java programs. They can also combine data from multiple test coverage runs on a single project into coherent information for that project.

See http://www.semanticdesigns.com/Products/TestCoverage/index.html

(Hi Kurt).

于 2009-07-21T09:32:57.520 回答