<cobertura-instrument todir="${instrumenteddir}"> <!-- The following line causes instrument to ignore any source line containing a reference to log4j, for the purposes of coverage reporting. --> <ignore regex="org.apache.log4j.*" />
<fileset dir="${builddir}">
</fileset> </cobertura-instrument> </target>
<target name="instrumentGEH" >
<cobertura-instrument todir="${instrumenteddir}"> <!-- The following line causes instrument to ignore any source line containing a reference to log4j, for the purposes of coverage reporting. --> <ignore regex="org.apache.log4j.*" /> <!-- This one using to know which will be show at coverage table --> <fileset dir="${builddir}"> <include name="com/prft/geh/**/*.class" /> <include name="com/prft/jedi/**/*.class"/> <include name="com/zw/geh/util/bw/listener/**/*.class"/> <exclude name="com/prft/geh/**/xmlimpl/**/*.class" /> <exclude name="com/prft/**/rv/**/*.class" /> <exclude name="com/prft/geh/**/mssql/*.class" /> <exclude name="com/prft/geh/**/db2/*.class" /> <exclude name="com/prft/geh/**/oracle/*.class" /> <exclude name="com/prft/geh/**/dto/*.class" /> <exclude name="com/prft/geh/**/configurator/**/*.class" /> <exclude name="com/prft/jedi/configurator/ui/*.class"/> <exclude name="com/zw/geh/util/bw/listener/xmlimpl/**/*.class"/> <exclude name="com/prft/jedi/**/xmlimpl/**/*.class"/> <exclude name="com/prft/geh/jedi/engine/process/common/Rv*.class"/> <exclude name="com/prft/jedi/exceptions/common/XPathProcessorException.class"/> <exclude name="com/prft/jedi/exceptions/soap/manager/SoapManagerException.class"/> <exclude name="com/prft/jedi/exceptions/mail/manager/MailReceiverException.class"/> <exclude name="com/prft/jedi/jms/manager/JmsManagerConstants.class"/> <exclude name="com/prft/jedi/exceptions/jms/managerr/JmsQueueConnectionException.class" /> </fileset> </cobertura-instrument> </target>
<target name="instrumentGAL" >
<cobertura-instrument todir="${instrumenteddir}"> <!-- The following line causes instrument to ignore any source line containing a reference to log4j, for the purposes of coverage reporting. --> <ignore regex="org.apache.log4j.*" />
<target name="testGEH" > <junit dir="./" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true"> <!-- Note the classpath order: instrumented classes are before the original (uninstrumented) classes. This is important. --> <classpath location="${instrumenteddir}" /> <classpath refid="src.classpath" /> <classpath refid="test.classpath" /> <classpath refid="axis2.classpath"/> <syspropertyset> <propertyref prefix="test-sys-prop."/> <mapper from="test-sys-prop.*" to="*" type="glob"/> </syspropertyset> <classpath location="${builddir}" /> <classpath location="${testdir}" />
<!-- The instrumented classes reference classes used by the Cobertura runtime, so Cobertura and its dependencies must be on your classpath. --> <classpath refid="cobertura.classpath" /> <formatter type="brief" usefile="false"/> <formatter type="xml" /> <test name="${testcase}" todir="${reportsdir}/junitxml" if="testcase" /> <batchtest todir="${reportsdir}/junitxml" unless="testcase"> <fileset dir="${utestdir}/java"> <include name="com/prft/geh/**/*Test.java" /> <include name="com/prft/jedi/**/*Test.java"/> <include name="com/zw/geh/util/bw/listener/**/*Test.java" /> </fileset> </batchtest> </junit>
<target name="testGAL" > <junit dir="./" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true"> <!-- Note the classpath order: instrumented classes are before the original (uninstrumented) classes. This is important. --> <classpath location="${instrumenteddir}" /> <classpath refid="src.classpath" /> <classpath refid="test.classpath" /> <classpath refid="axis2.classpath"/> <syspropertyset> <propertyref prefix="test-sys-prop."/> <mapper from="test-sys-prop.*" to="*" type="glob"/> </syspropertyset> <classpath location="${builddir}" /> <classpath location="${testdir}" />
<!-- The instrumented classes reference classes used by the Cobertura runtime, so Cobertura and its dependencies must be on your classpath. --> <classpath refid="cobertura.classpath" />
<target name="test" > <junit dir="./" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true"> <!-- Note the classpath order: instrumented classes are before the original (uninstrumented) classes. This is important. --> <classpath location="${instrumenteddir}" /> <classpath refid="src.classpath" /> <classpath refid="test.classpath" /> <classpath refid="axis2.classpath"/> <syspropertyset> <propertyref prefix="test-sys-prop."/> <mapper from="test-sys-prop.*" to="*" type="glob"/> </syspropertyset> <classpath location="${builddir}" /> <classpath location="${testdir}" />
<!-- The instrumented classes reference classes used by the Cobertura runtime, so Cobertura and its dependencies must be on your classpath. --> <classpath refid="cobertura.classpath" />
<target name="coverage-report"> <!-- Generate an XML file containing the coverage data using the "srcdir" attribute. --> <cobertura-report srcdir="${srcdir}" destdir="${reportsdir}/coveragexml" format="xml" /> </target>
<target name="coverage-gal-report"> <!-- Generate an XML file containing the coverage data using the "srcdir" attribute. --> <cobertura-report destdir="${reportsdir}/gal/coveragexml" format="xml"> <fileset dir="${srcdir}"> <include name="com/prft/gal/**/*.java" /> <include name="com/prft/tm/**/*.java" /> </fileset> </cobertura-report> </target>
<target name="coverage-geh-report"> <!-- Generate an XML file containing the coverage data using the "srcdir" attribute. --> <cobertura-report destdir="${reportsdir}/geh/coveragexml" format="xml"> <fileset dir="${srcdir}"> <include name="com/prft/geh/**/*.java" /> <include name="com/prft/jedi/**/*.java"/> <include name="com/zw/geh/util/bw/listener/**/*.java"/> </fileset> </cobertura-report> </target>
<target name="alternate-coverage-report"> <!-- Generate a series of HTML files containing the coverage data in a user-readable form using nested source filesets. --> <cobertura-report destdir="${reportsdir}/coveragehtml"> <fileset dir="${srcdir}"> <include name="**/*.java" /> </fileset> </cobertura-report> </target>
<target name="alternate-gal-coverage-report"> <!-- Generate a series of HTML files containing the coverage data in a user-readable form using nested source filesets. --> <cobertura-report destdir="${reportsdir}/gal/coveragehtml"> <fileset dir="${srcdir}"> <include name="com/prft/gal/**/*.java" /> <include name="com/prft/tm/**/*.java" /> </fileset> </cobertura-report> </target>
<target name="alternate-geh-coverage-report"> <!-- Generate a series of HTML files containing the coverage data in a user-readable form using nested source filesets. --> <cobertura-report destdir="${reportsdir}/geh/coveragehtml"> <fileset dir="${srcdir}"> <include name="com/prft/geh/**/*.java" /> <include name="com/prft/jedi/**/*.java"/> <include name="com/zw/geh/util/bw/listener/**/*.java"/> </fileset> </cobertura-report> </target>