Hello all. I'm new to EMMA and ANT, so I won't be surprised if I totally missed something here. I'm testing out a very basic piece of code to try to get a report out of EMMA on what code is being covered in the test. I tried using the ANT script below to get the HTML report but whenever I run it, I get nothing.
What am I missing here?
<?xml version="1.0" encoding="UTF-8"?><projectname="JCT Project"default="run"basedir="."><!-- Description --><description>
Build script for the Java Code Coverage Tool
</description><!-- Directories --><propertyname="out.dir"value="${basedir}/out"/><propertyname="src.dir"value="${basedir}/jct"/><propertyname="emma.dir"value="${basedir}/lib"/><propertyname="coverage.dir"value="${basedir}/coverage"/><!-- Setup the Path --><pathid="emma.lib"><pathelementlocation="${emma.dir}/emma.jar"/><pathelementlocation="${emma.dir}/emma_ant.jar"/></path><taskdefresource="emma_ant.properties"classpathref="emma.lib"/><targetname="emma"description="turns on EMMA's on-the-fly instrumentation mode"><propertyname="emma.enabled"value="true"/></target><!-- Initialize --><targetname="init"><mkdirdir="${out.dir}"/><mkdirdir="${out.dir}/jct"/><pathid="run.classpath"><pathelementlocation="${out.dir}"/></path><mkdirdir="${coverage.dir}"/></target><!-- Compile the JCT file --><targetname="compile"description="compile the source"><javacsrcdir="${src.dir}"debug="on"/><movefile="jct/JCT.class"todir="${out.dir}/jct"/></target><!-- Build a Jar --><targetname="run"depends="init, compile"description="run the source"><emmajavaenabled="${emma.enabled}"libclasspathref="emma.lib"fullmetadata="yes"sourcepath="${src.dir}"classname="jct.JCT"classpathref="run.classpath"><txtoutfile="${coverage.dir}/coverage.txt"/><xmloutfile="${coverage.dir}/coverage.xml"/><htmloutfile="${coverage.dir}/coverage.html" /></emmajava></target></project>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all. I'm new to EMMA and ANT, so I won't be surprised if I totally missed something here. I'm testing out a very basic piece of code to try to get a report out of EMMA on what code is being covered in the test. I tried using the ANT script below to get the HTML report but whenever I run it, I get nothing.
What am I missing here?