• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Emma is not producing coverage data  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am using Junitee for unit testing and Emma for producing the coverage.
I instrument the classes and deploy it into the jboss directory as a jar

<target name="_instrumentForEmma_">
<property name="emma.instr.dir" value="instrumented" />
<emma enabled="true">
<instr instrpath="dist/ejbServer.jar" destdir="${emma.instr.dir}" metadatafile="${reportOutputParentDir}/reports/emma/metadata.emma" merge="true">

<filter excludes="*Exception, *PK, *VO*, *Util" />

<!-- archive the instrumented -->
<jar destfile="${emma.instr.dir}/ejbServer.jar" duplicate="preserve">
<zipfileset dir="src/j2ee/generated/etc" prefix="META-INF" includes="*.xml" />
<zipfileset dir="lib" prefix="lib">
<include name="oamData.jar" />
<attribute name="Class-Path" value="lib/oamData.jar" />

<fileset dir="${emma.instr.dir}" />
<fileset dir="build/classes/main" />

<!-- deploy the instrumented to server -->
<copy toDir="${JBOSS_ROOT_DIR}/server/${JBOSS_SERVER_NAME}/deploy/oamr">
<fileset dir="${emma.instr.dir}">
<include name="ejbServer.jar" />

But while i run junitee , I donot get the coverage data produced. It would be great if someone can help me.
Just the metadata file is produced.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!