testng测试 并生成覆盖率报告
来源:互联网 发布:html javascript 编辑:程序博客网 时间:2024/05/17 22:41
build.xml testng测试 并生成覆盖率报告
- <project name="coverage" default="emma.reports">
- <path id="emma.lib">
- <pathelement location="WebRoot/WEB-INF/lib/emma.jar" />
- <pathelement location="WebRoot/WEB-INF/lib/emma_ant.jar" />
- </path>
- <property file="build.properties" />
- <property name="reports" location="reports" />
- <property name="coverage" location="coverage" />
- <property name="coverage-output" location="coverage-classes" />
- <property name="output" location="classes" />
- <fileset dir="${JAVA_HOME}" />
- <fileset dir="${J2EE_HOME}" />
- <taskdef resource="testngtasks" classpath="WebRoot/WEB-INF/lib/testng-5.11-jdk15.jar" />
- <taskdef resource="emma_ant.properties" classpathref="emma.lib" />
- <path id="cp">
- <fileset dir="WebRoot/WEB-INF/lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${JAVA_HOME}">
- <include name="**/*.jar" />
- </fileset>
- <fileset dir="${J2EE_HOME}">
- <include name="**/*.jar" />
- </fileset>
- <pathelement location="${coverage-output}" />
- <pathelement location="${output}" />
- </path>
- <target name="compile">
- <mkdir dir="${output}" />
- <mkdir dir="${coverage-output}" />
- <javac source="1.5" srcdir="src" debug="true" destdir="${output}" classpathref="cp">
- <include name="**/*.java" />
- </javac>
- </target>
- <target name="emma" depends="compile">
- <emma>
- <instr instrpath="${output}"
- destdir="${coverage-output}"
- metadatafile="${coverage}/metadata.emma"
- merge="true" />
- </emma>
- </target>
- <target name="coverage-test" depends="emma">
- <testng classpathref="cp">
- <classfileset dir="${coverage-output}" includes="**/*.class" />
- <jvmarg value="-Demma.coverage.out.file=${coverage}/coverage.emma" />
- <jvmarg value="-Demma.coverage.out.merge=true" />
- </testng>
- </target>
- <target name="emma.reports" depends="coverage-test">
- <emma>
- <report sourcepath="src">
- <fileset dir="${coverage}">
- <include name="*.emma" />
- </fileset>
- <txt outfile="${reports}/coverage.txt" />
- <html outfile="${reports}/coverage.html" />
- </report>
- </emma>
- </target>
- <!--<target name="test" depends="compile">
- <testng classpathref="cp" suitename="ant">
- <classfileset dir="${output}" includes="**/*.class" />
- </testng>
- </target>-->
- </project>
0 0
- testng测试 并生成覆盖率报告
- testng emma 测试 覆盖率
- junit + ant + emma生成代码测试覆盖率报告
- (翻译)Android应用生成测试覆盖率报告
- Android Studio查看测试覆盖率并生成测试报告
- 使用VCS生成覆盖率报告
- Ant 单元测试及Jacoco覆盖率报告生成并将报告提交sonarqube
- sonar ant+jacoco 编译测试并出具测试代码覆盖率报告
- testng生成自定义html报告
- Ant执行JUnit测试并生成报告
- Ant执行JUnit测试并生成报告
- loadrunner测试并发量并生成报告
- JaCoCo+Maven+Jenkins自动执行单元测试并生成代码覆盖率报告
- JaCoCo和Maven的集成方式,在开发者测试阶段自动生成覆盖率报告
- Java单元测试Junit(六)使用Cobertura生成测试覆盖率报告
- phing生成phpunit报告,代码覆盖率
- 使用OpenCover生成单元测试覆盖率报告
- 单元测试覆盖率生成网页报告----(一)
- 使用PLSQL Developer连接数据库三种方式
- CAShapeLayer FontAwesome
- [mark]ubuntu ifconfig 能够获取ip但是不能联网浏览网页 ubuntu突然不能联网
- c语言使用freetds连接ms sql server
- POJ 1743 Musical Theme(后缀数组)
- testng测试 并生成覆盖率报告
- Linux Shell 文本处理工具集锦
- linux批量替换文件内容3种方法(perl,sed,shell)
- Function: selinux_android_load_priority [0], There is no sepolicy file
- Android核心分析
- JAVA-原创差异化加密---觉得还行您就看看,觉得不行也没关系
- 标题:切面条-
- UVA Bicoloring (交叉染色)
- 删除WebLogic 10的缓存