RE: Possible to use with Cobertura?

"Bret Kumler" <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <24F7E976D2C85149A4785E11309B603306992D05@traveler>
Do not put the classes u r testing in the war file.

<classes dir="${buildDir}">
        <include name="**/*.class" />

Remove that.



-----Original Message-----
From: news [mailto:[email protected]] On Behalf Of Ryan
Sent: Wednesday, May 03, 2006 10:26 AM
To: [email protected]
Subject: Re: Possible to use with Cobertura?

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    



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





This e-mail message and any attachments may contain private, confidential, proprietary or privileged material of GoldenGate Software, Inc. that is for the sole use of the intended recipient(s) of this e-mail message.  Any review, copying or distribution or other use of this e-mail message or any attachments hereto by anyone other than the intended recipient(s) is strictly prohibited.  If you are not the intended recipient(s) of this e-mail message, please contact GoldenGate Software, Inc. (415-777-0200) immediately and permanently delete the original e-mail message and any copies of this e-mail message and all attachments, if any.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.