emma

Emma - Block Coverage vs Line Coverage

I have a strange scenario... while doing a EMMA coverage for UT, I get the total block coverage size more than line coverage size. For block coverage, the total size is some 50,000 while the line coverage is out of 18,000. I get (block-coverage-value) / 50,000 and (line-coverage-value) / 18,000 in the report. Is it possible? How can t...

eclEmma - full code coverage on class header?

Hi, I have a class that starts with: public class GeneralID implements WritableComparable<GeneralID>{ ... } And another that is: public class LineValuesMapper<KI, VI, KO, VO> extends Mapper<LongWritable, Text, Text, IntWritable>{ ... } All methods in these classes are covered. But not their header. The header of both classes gets ...

How to get coverage result for system testing using emma or similar tools!

Is there any way to get system tests coverage results for a system involving two or more web applications deployed in single app server? ...

emma not generating reports but cobertura does ?

Hi all, basic reason to put the comparison question between these 2 is I am able to generate the reports in site directory(for cobertura) after putting the following plug in information in build section of my pom. But same would not happening with emma. I checked documentation in codehause mojo its almost same for both. My configuration...

emma coverage tool

Hi, I am getting the following error while trying to get coverage data using emma ctl tool. EMMA: processing control command sequence ... EMMA: executing [coverage.get (C:/FD_DEV3/feddebt_sources/report/emma/coverage.ec,true,true)] ... [EMMA v2.1, build 5320 (stable)] emma ctl: coverage.get: RPC failure while executing [coverage.get] E...

Ant build - Emma code instrumentation - JUnit tests need interfaces, Emma doesn't instrument them

I have an Ant build file where I compile the Java source code of the application and of the tests, instrument the application classes, run JUnit tests and generate JUnit and Emma code coverage reports. The JUnit task is given the path to the instrumented classes. The problem is that the interfaces are not instrumented (Emma FAQ) but I u...

Java : Which Code Coverage tool to use ?

Hi all, Here is what I want to do: 1) A running application has been instrumented. The byte code is clean - means that the tracing info should be added on the byte code level. 2) The running application might run for days or weeks. I want to have a trace file once per day. 3) If the tracing period is over I want to merge all trace fi...

How to calculate code coverage in Hudson using emma for a multi-module maven project but only run tests once

We have several multi-module projects which I want to run emma against, but I don't want the tests to be run twice, because this results in misleading statistics on the Hudson project home page as unit tests are counted twice. For a single module project, we can ommit the install goal and just use clean emma:emma to run the tests once, ...

Emma test suite coverage

I'm trying to test my own tests suite's coverage on an api I am working with. To do that I have a staging server that is running everything and I want to instrument the specific api classes in a jar file and then run my tests and get a coverage report. What I did was explode the jar run the code to instrument the classes then I put it ...

Legend for colors used by the EMMA Code Coverage Report

Where can I find a legend for the default colors used by Emma for highlighting source code when a HTML coverage report is generated? ...

Why doesn't EclEmma cover syncronized(MyClass.class)?

Dear Sirs, I'm using EclEmma for coverage analysis. My Java code includes a synchronized(MyClass.class) {} block. EclEmma says it is only partially covered, event though I've got a unit test in which one thread gets access and another thread is blocked. Is it possible to get full coverage of synchronized using EclEmma? Can I annotat...

Measuring integration test coverage with Maven

The followings are ok now: I have a multi-module project in maven with EJB and WAR projects I want to use JMeter (and later selenium) for integration testing. I can run both from Maven. The JMeter plan is ready, I run it with Chronos maven plugin. My application is a JEE application, so I want to test the code with the planned producti...

instrument class files from all subdirectory

Hi, is there any possibilities to instrument classes from all sub-directory instead of single class directory? Any sample code? Great if you can post me sample code of Ant which can instrument classes from many sub-directories? Regards, Rajesh ...