??????????????????????
???????????? ???????[ 2013/11/26 16:18:55 ] ????????
????2.build.xml???
<span style="font-size:18px;"><?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
Nov 25?? 2013 11:51:47 AM
project
description
clouder
====================================================================== -->
<project name="build" default="init" basedir="." xmlns:jacoco="antlib:org.jacoco.ant">
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
<classpath path="${basedir}/devlib/jacocoant.jar">
</classpath>
</taskdef>
<property file="build.properties">
</property>
<path id="compile-test-path">
<pathelement location="${build.classes}" />
<fileset dir="${junit.lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<path id="run-test-path">
<path refid="compile-test-path" />
<pathelement location="${build.test.classes}" />
</path>
<target name="init" depends="clean">
<mkdir dir="${build.dir}" />
<mkdir dir="${build.classes}" />
<mkdir dir="${build.test.dir}" />
<mkdir dir="${build.test.classes}" />
<mkdir dir="${build.test.report}" />
<mkdir dir="${build.test.report.coverage}" />
</target>
<target name="clean">
<delete dir="${build.dir}">
</delete>
</target>
<target name="src_compile" depends="init">
<javac srcdir="${src.dir}" destdir="${build.classes}" failonerror="true" verbose="true">
</javac>
</target>
<target name="test_compile" depends="src_compile">
<javac srcdir="${test.src.dir}" destdir="${build.test.classes}" failonerror="true" verbose="true">
<classpath refid="compile-test-path">
</classpath>
</javac>
</target>
<target name="coverage">
<jacoco:coverage>
<junit haltonfailure="false" fork="true" printsummary="true">
<classpath refid="run-test-path">
</classpath>
<formatter type="xml" />
<batchtest todir="${build.test.report}">
<fileset dir="${build.test.classes}" includes="**/*Test*.class">
</fileset>
</batchtest>
</junit>
</jacoco:coverage>
</target>
<target name="run-test" depends="test_compile">
<junit haltonfailure="false" fork="true" printsummary="true">
<classpath refid="run-test-path">
</classpath>
<formatter type="xml" />
<batchtest todir="${build.test.report}">
<fileset dir="${build.test.classes}" includes="**/*Test*.class">
</fileset>
</batchtest>
</junit>
</target>
<target name="test-report" depends="run-test">
<junitreport todir="${build.test.report}">
<fileset dir="${build.test.report}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${build.test.report}/html" />
</junitreport>
</target>
<target name="coverreport" depends="coverage">
<jacoco:report>
<executiondata>
<file file="${basedir}/jacoco.exec" />
</executiondata>
<structure name="MeltingPot unit test coverage rate report.">
<classfiles>
<fileset dir="${build.classes}" />
</classfiles>
<sourcefiles encoding="UTF-8">
<fileset dir="${src.dir}" />
</sourcefiles>
</structure>
<html footer="Onecloud MeltingPot." destdir="${build.test.report.coverage}" />
<csv destfile="${build.test.report.coverage}/coverage-report.csv" />
</jacoco:report>
</target>
<target name="all-report" depends="coverreport??test-report">
<echo>generate unit test report and coverage rate report.</echo>
</target>
</project>
</span>
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????