EMMA: 免费java代码测试覆盖工具
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了EMMA: 免费java代码测试覆盖工具,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2796字,纯文字阅读大概需要4分钟。
内容图文
![EMMA: 免费java代码测试覆盖工具](/upload/InfoBanner/zyjiaocheng/1086/50ca3672f39348428cfec34e3373cd8f.jpg)
From:http://emma.sourceforge.net/
EMMA: a free Java code coverage tool
Code coverage for free: a basic freedom? |
||
Until recently, the world of Java development had been plagued by an absurd discrepancy: Java developers had excellent free IDEs, free compilers, free test frameworks but had to rely on code coverage tools that charged an arm and a leg in license fees. As a Java pro, I would like to use the same free coverage tool regardless of whether it is a massive commercial project at work or a small fun project at home. I‘ve created EMMA to be that tool.
EMMA is an open-source toolkit for measuring and reporting Java code coverage. EMMA distinguishes itself from other tools by going after a unique feature combination: support for large-scale enterprise software development while keeping individual developer‘s work fast and iterative. Every developer on your team can now get code coverage for free and they can get it fast!
Chances are, you‘ve come here already knowing what coverage is all about and are, in fact, wondering what EMMA offers and why it is worth checking out. Explore the rest of this site to see why.
EMMA features at a glance: |
||
-
EMMA can instrument classes for coverage either offline (before they are loaded) or on the fly (using an instrumenting application classloader).
-
Supported coverage types: class, method, line, basic block. EMMA can detect when a single source code line is covered only partially.
-
Coverage stats are aggregated at method, class, package, and "all classes" levels.
-
Output report types: plain text, HTML, XML. All report types support drill-down, to a user-controlled detail depth. The HTML report supports source code linking.
-
Output reports can highlight items with coverage levels below user-provided thresholds.
-
Coverage data obtained in different instrumentation or test runs can be merged together.
-
NEW in v2.1Starting with build 2.1.5320 it is possible to dump or reset coverage data remotely and without a JVM exit.
-
EMMA does not require access to the source code and degrades gracefully with decreasing amount of debug information available in the input classes.
-
EMMA can instrument individial .class files or entire .jars (in place, if desired). Efficient coverage subset filtering is possible, too.
-
Makefile and ANT build integration are supported on equal footing.
-
EMMA is quite fast: the runtime overhead of added instrumentation is small (5-20%) and the bytecode instrumentor itself is very fast (mostly limited by file I/O speed). Memory overhead is a few hundred bytes per Java class.
-
EMMA is 100% pure Java, has no external library dependencies, and works in any Java 2 JVM (even 1.2.x).
More on EMMA features can be found in the FAQ.
Where to go from here? |
原文:http://www.cnblogs.com/boonya/p/4440706.html
内容总结
以上是互联网集市为您收集整理的EMMA: 免费java代码测试覆盖工具全部内容,希望文章能够帮你解决EMMA: 免费java代码测试覆盖工具所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。