hi,
   I m supposed to evaluate Jcoverage .. using ANT .......i m able-- to

1 compile classes
2 instrument
3 run the junits
4 generate reports for junits
however i m able to generate the coverage report  but it doesnt show the lines that were executed or those which were not executed...

my build file is as follows :-

<project name="MyProject"  basedir=".">
    <description>
        simple example build file
    </description>
  <!-- set global properties for this build -->
  <property name="src" location="C:\apache-ant-1.6.2\bin"/>
  <property name="build" location="C:\apache-ant-1.6.2\bin\build"/>
<taskdef classpath="C:\jcoverage-plus-1.2.9\jcoverage-plus.jar" resource="tasks.properties"/>
    
<target name="compile" description="compile the source " >     <!--Compile the java code from ${src} into ${build}-->
  <javac srcdir="C:\apache-ant-1.6.2\bin\build\src" destdir="C:\apache-ant-1.6.2\bin\build\class"/>
  </target> 
  

<instrument todir="C:\apache-ant-1.6.2\bin\build\instrumented-classes">
      <fileset dir="C:\apache-ant-1.6.2\bin\build\class">
        <include name="**/*.class"/>
      </fileset>
</instrument>
             




    <jtestrun todir="C:\apache-ant-1.6.2\bin\build\reports">
  <classpath location="C:\apache-ant-1.6.2\bin\build\instrumented-classses"/>
  <classpath location="C:\apache-ant-1.6.2\bin\build\class"/>
 
  <fileset dir="C:\apache-ant-1.6.2\bin\build\src">
    <include name="**/*Test.java"/>
  </fileset>
</jtestrun>

 
  <target name="coverage">
  <report format="html" srcdir="${src}"  destdir="C:\apache-ant-1.6.2\bin\build\CoverageReport"/>
</target> 
      

</project>


Can anyone please suggest where i m goin wrong

           
---------------------------------
ALL-NEW Yahoo! Messenger - all new features - even more fun! 

[Non-text portions of this message have been removed]





Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=315388.5526708.6599542.3001176/D=groups/S=:HM/A=2372354/rand=617256488


Yahoo! Groups Links

Reply via email to