Re: Possible to use with Cobertura?
Ryan <[email protected]>
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
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