jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bret Kumler" <bkum...@Bitfone.com>
Subject RE: cactus and jcoverage
Date Thu, 27 Jan 2005 16:15:29 GMT
Can you post your build script?

I want to see what I'm missing.


Here's what I have.


	<target name="instrument" description="Add jcoverage
instrumentation">
		
		<instrument todir="${instrumented.classes}">
					
				<ignore regex="org.apache.log4j.*"/>
      
				<fileset
dir="${core.build.classes.dir}">
						
					<include name="**/*.class"/>
					<exclude name="**/*Test.class"/>
				</fileset>
		</instrument>
	</target>


	<target name="core.weblogic.tests">
		<mkdir dir="${execution.dir}/tests/cactus"/>
		<!-- Run the tests -->
		
		<cactus
earfile="${execution.dir}/mvpcore-tests/testbinaries/${app.mvpcore}.ear"
fork="yes" failureproperty="tests.failed" haltonerror="false">
			<cactusproperty server="false"
propertiesFile="${conf.dir}/log_client.properties"/>
			<cactusproperty server="true"
propertiesFile="${conf.dir}/log_server.properties"/>
			<classpath>
				<path
location="${instrumented.classes}"/>
				<path refid="project.classpath"/>
				<pathelement
location="${execution.dir}/tests/lib/test.jar"/>
				<fileset dir="${core.build.dir}/ejb"
includes="**/*.jar"/>
				<fileset
dir="${core.build.dir}/WEB-INF/lib" includes="**/*.jar"/>
			</classpath>
			<containerset>
				<generic name="Weblogic 8.1.2.0"
port="${test.port}"/>
			</containerset>
			<formatter type="brief" usefile="false"/>
			<formatter type="xml"/>
			<batchtest
todir="${execution.dir}/tests/cactus">
				<fileset dir="${core.test.classes}">
					<include
name="**/TestAll*.class"/>
				</fileset>
			</batchtest>
		</cactus>
		

		<!-- Generate the JUnit reports -->
		<junitreport todir="${execution.dir}/tests/cactus">
			<fileset dir="${execution.dir}/tests/cactus"
includes="TEST-*.xml"/>
			<report todir="${execution.dir}/tests/cactus"
format="frames"/>
		</junitreport>

		
	</target>


	<!-- Generate the jcoverage reports -->
	<target name="coverage" description="HTML coverage reports can
be found in build/coverage">
	        <mkdir dir="${execution.dir}/tests/cactus/coverage"/>
		<report srcdir="${src.dir}"
destdir="${execution.dir}/tests/cactus/coverage"/>

		<echo>
			JCoverage reports have been generated.
			The HTML report is
${execution.dir}/tests/cactus/coverage/index.html
		</echo>
       </target>


-----Original Message-----
From: Sam Smith [mailto:samtsmith@gmail.com] 
Sent: Thursday, January 27, 2005 8:02 AM
To: Cactus Users List
Subject: Re: cactus and jcoverage

We are using the two together.  There is a jCoverage mailing list,
which is probably where you will want to post your coverage questions
(though it hasn't been the most active in my experience).

I would also be happy to help you (though it might be best to do it
through the jCoverage list so it is there for others to see as well).

Sam


On Thu, 27 Jan 2005 07:52:57 -0800, Bret Kumler <bkumler@bitfone.com>
wrote:
> I have it working fine with JUnit.
> 
> I have it setup the same way to run with Cactus, it's just not showing
> any statistics.
> 
> I haven't tried Emma yet.  JCoverage is free as well, only thing is
the
> documentation is VERY limited.  They also have a commercial version.
> 
> --Bret
> 
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: Wednesday, January 26, 2005 11:18 PM
> To: 'Cactus Users List'
> 
> Subject: RE: cactus and jcoverage
> 
> Hi Bret,
> 
> I have never tried JCoverage w/ Cactus. What problem are you
> experiencing?
> 
> Thanks
> -Vincent
> 
> PS: Have you tried Emma? I'd like to try it out and possibly replace
> Clover
> by Emma for the Cactus build. The good thing is that Emma is free and
> does
> not require a license which makes it easier for others to build Cactus
> with
> test coverage on.
> 
> > -----Original Message-----
> > From: Bret Kumler [mailto:bkumler@Bitfone.com]
> > Sent: jeudi 27 janvier 2005 01:59
> > To: Cactus Users List
> > Subject: cactus and jcoverage
> >
> > Hi has anyone been able to get cactus and http://jcoverage.com/
> working
> > together?
> >
> > Are there any working examples available?
> >
> > Thanks,
> >
> > Bret
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org


Mime
View raw message