Questions tagged [emma]

EMMA is an open-source toolkit that measures and reports the percentage of Java code covered by unit tests.

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.
  • Starting 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 individual .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).

Useful Links:

274 questions
0
votes
0 answers

EMMA [MAIN_METHOD_NOT_FOUND]

Am trying to use Emma for checking the code coverage of my application and am trying to run like this D:\bin>java -cp val.jar;emma.jar emmarun -r html -cp . com.val.ui.ValidatorClient EMMA: no coverage data collected at runtime [all reports…
siva
  • 1,105
  • 4
  • 19
  • 38
0
votes
2 answers

Running Emma with Eclipse on Ubuntu

I'm trying to use Emma coverage tool with Eclipse, but i'm a little confused. So I added emma.jar and emma_ant.jar into /usr/lib/jvm/java-6-openjdk-common/jre/lib/ext/emma/ directory and created a Java Project under Eclipse using JRE:…
kdelemme
  • 333
  • 1
  • 7
  • 20
0
votes
2 answers

Is it possible to get Emma coverage tool in eclipse to ignore certain lines?

I'm using Emma coverage tool in eclipse when using unit tests to see my coverage for each test. However certain lines don't get covered for instant the class declaration in an abstract class: public abstract class ... { Is it possible to either…
Alexei Blue
  • 1,762
  • 3
  • 21
  • 36
-1
votes
1 answer

Code coverage for GUI based functional tests

I am trying to get bytecode coverage analysis using a code coverage tool (like Emma or Jacoco) after testing with a GUI based functional testing tool (like HP QuickTest Pro or Selenium). Anyone who has done this could please give me an idea to start…
1 2 3
18
19