鹿撹聞喘cobertura才tomcat - 園殻秘壇利
作者 佚名技术
来源 NET编程
浏览
发布时间 2012-06-16
; <cobertura-report srcdir="${src.dir}" destdir="${reports.cobertura.xml.dir}" format="xml" /> </target> <target name="alternate-coverage-report"> <cobertura-report destdir="${reports.cobertura.html.dir}"> <fileset dir="${src.dir}"> <include name="**/*.java"/> </fileset> </cobertura-report> </target> <!-- for this project --> <path id="compile.classpath"> <fileset dir="${project.lib.dir}"> <include name="**/*.jar" /> </fileset> </path> <path id="web.compile.classpath"> <fileset dir="${env.TOMCAT_HOME}/webapps/${ant.project.name}/WEB-INF/classes"> <include name="**/*.class" /> </fileset> </path> <!-- smoke test --> <target name="unittest" depends="qa.build" description="unit test using nunit"> <!-- target unittest.overide means the a project can selfdefine itself''s unit target, the test depends some special conditions. that a project, which would build the unittest project, defines a unittest.override, so, i will call the unittest.override target, instead of unittest --> <junit fork="yes" dir="${basedir}" failureProperty="test.failed" > <classpath location="${instrumented.dir}" /> <classpath location="${classes.dir}" /> <classpath refid="compile.classpath" /> <classpath refid="cobertura.classpath" /> <formatter type="${out.junit.textType}"/> <batchtest fork="yes" todir="${reports.junit.xml.dir}" > <fileset dir="${tests.dir}"> <include name="**/*Test.java"/> </fileset> </batchtest> </junit> </target> <target name="smoketest" > <property name="tests.dir" value="${project.dir}/tests" /> <antcall target="checkout"></antcall> <antcall target="initdir"></antcall> <antcall target="qa.build"></antcall> <antcall target="instrument"></antcall> <antcall target="unittest"></antcall> <antcall target="junitreport"></antcall> <antcall target="coverage-report"></antcall> <antcall target="alternate-coverage-report"></antcall> < |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于鹿撹聞喘cobertura才tomcat - 園殻秘壇利的所有评论