jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan <gingrichr...@strose.edu>
Subject Re: Possible to use with Cobertura?
Date Wed, 03 May 2006 17:26:12 GMT
I added the instrumented class to the WAR file:

<!-- Make Project WAR File -->
  <target name="distwar" depends="buildwar"/>

  <!-- build the WAR and cactifyed-WAR -->
  <target name="buildwar" depends="compile">
    <war warfile="${distDir}/${warName}.war" webxml="${srcDir}/web.xml"
manifest="${srcDir}/${manifestForWAR}">
      <fileset dir="${srcDir}/Content"/>
      <lib dir="${thirdPartyLibsDir}"/>
      <classes dir="${instDir}"/>
      <classes dir="${buildDir}">
        <include name="**/*.class" />
        <exclude name="**/*Test.class" />
        <exclude name="**/test/*"/>
      </classes>
      <classes dir="${addlClassesDir}"/>
    </war>
    
    <!--Cactify the WAR-->
  <cactifywar srcfile="${distDir}/${warName}.war" 
              destfile="${distDir}/${warName}-cactified.war"
              mergewebxml="${srcDir}/cactus-web.xml">
    <classes dir="${buildDir}/Cactus"/>
    
    <lib file="${cactus.dir}/lib/httpunit-1.6.jar"/>
    <lib file="${cobertura.dir}/cobertura.jar"/>
    <lib dir="${thirdPartyLibsDir}"/>
    
    
    <servletredirector/>
    <servletredirector name="ServletRedirectorSecure"
					   mapping="/ServletRedirectorSecure"
					   roles="test"/>
  </cactifywar>  
</target>

and the reporting task is being called after the tests because my junit tests
are all reporting properly.  This is why I am confused why the Cactus tests will
not show any results when the JUnit tests do.  Any thoughts?


Ryan    



Mime
View raw message