blob: 346b233e5aa942118ce4cad6e1391abff0399f49 [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="user" default="build" basedir=".">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <property name="gwt.root" location=".." />
3 <property name="project.tail" value="user" />
4 <property name="test.args" value="" />
fabbott@google.com25305472009-06-10 21:39:00 +00005
jat@google.combf79ddb2009-10-14 07:44:30 +00006 <!-- support old variables names -->
7 <condition property="gwt.hosts.web.remote" value="${gwt.remote.browsers}">
8 <isset property="gwt.remote.browsers" />
9 </condition>
10 <condition property="gwt.hosts.web.selenium" value="${gwt.selenium.hosts}">
11 <isset property="gwt.selenium.hosts" />
12 </condition>
13
jat@google.com57b69402009-10-14 18:08:29 +000014 <!--
15 BrowserManagerServer_Stub compiled using rmic, which doesn't generate
16 full source code
17 -->
jlabanca@google.com81244562009-08-05 19:55:36 +000018 <property name="emma.filter.exclude" value="*BrowserManagerServer_Stub*" />
19
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000020 <import file="${gwt.root}/common.ant.xml" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000021
jat@google.com8cf77ce2009-10-16 01:47:08 +000022 <property name="test.timeout" value="4" />
jlabanca@google.com81244562009-08-05 19:55:36 +000023 <property name="emma.merged.out" value="${junit.out}/emma-coverage" />
24 <property name="gwt.junit.testcase.web.includes" value="${gwt.junit.testcase.includes}" />
25 <property name="gwt.junit.testcase.web.excludes" value="" />
26
jat@google.combf79ddb2009-10-14 07:44:30 +000027 <property name="gwt.junit.testcase.dev.includes" value="${gwt.junit.testcase.includes}" />
28 <property name="gwt.junit.testcase.dev.excludes" value="" />
29
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +000030 <property name="benchmark.timeout" value="30" />
31 <property name="gwt.benchmark.testcase.web.includes" value="${gwt.benchmark.testcase.includes}" />
32 <property name="gwt.benchmark.testcase.web.excludes" value="${gwt.benchmark.testcase.excludes}" />
33
jat@google.com57b69402009-10-14 18:08:29 +000034 <!--
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +000035 Test args can be specified per test target type.
36 -->
37 <property name="test.args.dev.remote" value="${test.args}" />
38 <property name="test.args.dev.selenium" value="${test.args}" />
39 <property name="test.args.web.remote" value="${test.args}" />
40 <property name="test.args.web.selenium" value="${test.args}" />
41
42 <!--
fabbott@google.com25305472009-06-10 21:39:00 +000043 Whether I18NSuite should test e.g. Foo$InnerMsgs_fr.properties (if the
44 value is "dollar") or Foo_Inner_fr.properties (for "bar")
45 -->
46 <property name="gwt.i18n.test.InnerClassChar" value="dollar"/>
47
spoon@google.com11b85e12010-05-28 15:44:36 +000048 <!-- Platform shouldn't matter here, just picking one -->
49 <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev.jar" />
50
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000051 <!--
fabbott@google.com25305472009-06-10 21:39:00 +000052 Classpaths added for test cases
53 -->
54 <path id="test.extraclasspath">
jat@google.comacf97d32009-09-21 22:06:15 +000055 <pathelement location="${gwt.build}/out/dev/bin-test" />
bobv@google.comb39b79c2009-06-18 15:58:28 +000056 <pathelement location="test-super" />
fabbott@google.com25305472009-06-10 21:39:00 +000057 <pathelement location="test_i18n_${gwt.i18n.test.InnerClassChar}" />
jat@google.combf79ddb2009-10-14 07:44:30 +000058 <pathelement location="${gwt.tools.lib}/cglib/cglib-2.2.jar"/>
59 <pathelement location="${gwt.tools.lib}/easymock/easymock.jar"/>
60 <pathelement location="${gwt.tools.lib}/easymock/easymockclassextension.jar"/>
61 <pathelement location="${gwt.tools.lib}/objectweb/asm-3.1.jar"/>
spoon@google.com11b85e12010-05-28 15:44:36 +000062 <pathelement location="${gwt.dev.jar}" />
fabbott@google.com25305472009-06-10 21:39:00 +000063 </path>
64
jlabanca@google.comf780b7a2009-10-16 16:36:03 +000065 <target name="compile" description="Compile all class files"
66 unless="compile.complete">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000067 <mkdir dir="${javac.out}" />
tomerigo@google.comc2163e62010-02-01 16:08:26 +000068 <gwt.javac excludes="**/super/**">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000069 <classpath>
scottb@google.com4f57bc22009-01-16 22:46:42 +000070 <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000071 <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" />
72 <pathelement location="${gwt.tools.lib}/jfreechart/jfreechart-1.0.3.jar" />
73 <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" />
bobv@google.coma933c8b2009-03-26 02:12:25 +000074 <pathelement location="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" />
bobv@google.com93569172010-01-15 19:17:28 +000075 <pathelement location="${gwt.tools.lib}/w3c/flute/flute-1.3-gg1.jar" />
amitmanjhi@google.comc278ce82010-06-28 15:45:45 +000076 <pathelement location="${gwt.tools}/redist/json/r2_20080312/json-1.5.jar" />
amitmanjhi@google.coma2d73122010-06-24 21:48:00 +000077 <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" />
nchalko@google.com90f14a02010-07-28 19:08:32 +000078 <!-- The source is included so validation is available from client code -->
79 <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA-sources.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000080 <pathelement location="${gwt.dev.jar}" />
81 </classpath>
82 </gwt.javac>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000083
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000084 <!-- Build the BrowserManagerServer_Stub to allow remote browser testing -->
85 <rmic base="${javac.out}"
jat@google.com57b69402009-10-14 18:08:29 +000086 classname="com.google.gwt.junit.remote.BrowserManagerServer"
87 stubversion="1.2"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000088 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000089
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000090 <!--
jat@google.comacf97d32009-09-21 22:06:15 +000091 Compile test code for dev to pick up TypeOracleTestUtils and others.
jat@google.com57b69402009-10-14 18:08:29 +000092 Compiles test dependencies in dev/core
spoon@google.comd0b00f82009-03-27 14:58:53 +000093 -->
jat@google.com57b69402009-10-14 18:08:29 +000094 <target name="compile.dev.tests">
jat@google.comc090a072009-09-21 17:39:53 +000095 <gwt.ant dir="../dev" target="compile.tests" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000096 </target>
spoon@google.comd0b00f82009-03-27 14:58:53 +000097
jat@google.com57b69402009-10-14 18:08:29 +000098 <!--
99 Compiles the test code for this project
100 -->
jat@google.come0fa5b12009-10-13 23:57:19 +0000101 <target name="compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000102 depends="compile.dev.tests, compile.emma.if.enabled"
103 unless="compile.tests.complete">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000104 <mkdir dir="${javac.junit.out}" />
jat@google.com57b69402009-10-14 18:08:29 +0000105 <gwt.javac srcdir="test" excludes="com/google/gwt/langtest/**"
106 destdir="${javac.junit.out}">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000107 <classpath>
108 <pathelement location="${javac.out}" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000109 <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" />
110 <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" />
amitmanjhi@google.comc278ce82010-06-28 15:45:45 +0000111 <pathelement location="${gwt.tools}/redist/json/r2_20080312/json-1.5.jar" />
nchalko@google.com860d8b42010-08-11 00:21:50 +0000112 <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" />
spoon@google.com11b85e12010-05-28 15:44:36 +0000113 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000114 </classpath>
115 </gwt.javac>
116 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000117
jat@google.combf79ddb2009-10-14 07:44:30 +0000118 <target name="build" depends="compile"
119 description="Build and package this project">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000120 <mkdir dir="${gwt.build.lib}" />
121 <gwt.jar>
122 <fileset dir="src" excludes="**/package.html" />
123 <fileset dir="super" excludes="**/package.html" />
124 <fileset dir="${javac.out}" />
scottb@google.com171f3f52009-08-11 19:50:31 +0000125 <zipfileset src="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" excludes="**/*.java"/>
bobv@google.coma933c8b2009-03-26 02:12:25 +0000126 <zipfileset src="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" />
bobv@google.com93569172010-01-15 19:17:28 +0000127 <zipfileset src="${gwt.tools.lib}/w3c/flute/flute-1.3-gg1.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000128 </gwt.jar>
129 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000130
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000131 <target name="checkstyle" description="Static analysis of source">
132 <gwt.checkstyle>
nchalko@google.comeb3e87a2010-08-05 20:48:12 +0000133 <fileset dir="src" >
134 <exclude name="javax/validation/super/javax/validation/constraints/Pattern.java"/>
135 </fileset>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000136 <fileset dir="super/com/google/gwt/emul" />
137 <fileset dir="super/com/google/gwt/junit/translatable" />
138 </gwt.checkstyle>
scottb@google.com6de97562009-11-03 21:04:24 +0000139 <gwt.checkstyle.tests>
140 <fileset dir="test">
scottb@google.com391ffa02009-11-03 22:04:04 +0000141 <include name="com/google/**/*.java" />
142 <include name="test/**" />
scottb@google.com6de97562009-11-03 21:04:24 +0000143 </fileset>
144 </gwt.checkstyle.tests>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000145 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000146
jat@google.combf79ddb2009-10-14 07:44:30 +0000147 <target name="test.remoteweb" depends="test.web.remote">
148 <echo message="DEPRECATED: test.remoteweb has been renamed test.web.remote"/>
149 </target>
150
151 <target name="test.web.remote"
jat@google.com57b69402009-10-14 18:08:29 +0000152 description="Run web test with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000153 if="gwt.hosts.web.remote"
154 unless="test.web.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000155 <echo message="Performing web remote testing at ${gwt.hosts.web.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000156 <property name="test.web.remote.args" value="${test.args.web.remote}" />
jat@google.com3d3977f2009-10-16 04:52:05 +0000157 <fileset id="test.web.remote.tests" dir="${javac.junit.out}"
158 includes="${gwt.junit.testcase.web.includes}"
159 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000160 <gwt.junit test.name="test.web.remote"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000161 test.args="${test.web.remote.args} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote}"
jat@google.com3d3977f2009-10-16 04:52:05 +0000162 test.out="${junit.out}/web-remote"
163 test.cases="test.web.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000164 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000165 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000166 </extraclasspaths>
167 </gwt.junit>
168 </target>
zundel@google.com29666c82008-06-04 16:07:53 +0000169
jat@google.combf79ddb2009-10-14 07:44:30 +0000170 <target name="test.dev.remote"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000171 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000172 description="Run dev-mode tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000173 if="gwt.hosts.dev.remote"
174 unless="test.dev.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000175 <echo message="Performing dev-mode remote testing at ${gwt.remote.browsers}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000176 <property name="test.dev.remote.args" value="${test.args.dev.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000177 <fileset id="test.dev.remote.tests" dir="${javac.junit.out}"
178 includes="${gwt.junit.testcase.dev.includes}"
179 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000180 <gwt.junit test.name="test.dev.remote"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000181 test.args="${test.dev.remote.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote}"
jat@google.com57b69402009-10-14 18:08:29 +0000182 test.out="${junit.out}/dev-remote" test.cases="test.dev.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000183 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000184 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000185 </extraclasspaths>
186 </gwt.junit>
187 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000188
jat@google.combf79ddb2009-10-14 07:44:30 +0000189 <target name="test.emma.remote"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000190 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000191 description="Run emma tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000192 if="gwt.hosts.dev.remote"
193 unless="test.emma.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000194 <echo message="Performing emma remote testing at ${gwt.hosts.dev.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000195 <property name="test.emma.remote.args" value="${test.args.dev.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000196 <fileset id="test.emma.remote.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000197 includes="${gwt.junit.testcase.dev.includes}"
198 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000199 <gwt.junit test.name="test.emma.remote"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000200 test.args="${test.emma.remote.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote}"
jat@google.com57b69402009-10-14 18:08:29 +0000201 test.out="${junit.out}/emma-remote"
202 test.cases="test.emma.remote.tests" >
jgw@google.coma3509e22009-02-06 21:06:24 +0000203 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000204 <path refid="test.extraclasspath" />
jgw@google.coma3509e22009-02-06 21:06:24 +0000205 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
206 </extraclasspaths>
207 </gwt.junit>
208 </target>
209
jat@google.combf79ddb2009-10-14 07:44:30 +0000210 <target name="test.emma.selenium"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000211 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000212 description="Run emma tests with Selenium-RC servers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000213 if="gwt.hosts.dev.selenium"
214 unless="test.emma.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000215 <echo message="Performing emma selenium testing at ${gwt.hosts.dev.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000216 <property name="test.emma.selenium.args" value="${test.args.dev.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000217 <fileset id="test.emma.selenium.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000218 includes="${gwt.junit.testcase.dev.includes}"
219 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000220 <gwt.junit test.name="test.emma.selenium"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000221 test.args='${test.emma.selenium.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}"'
jat@google.com57b69402009-10-14 18:08:29 +0000222 test.out="${junit.out}/emma-selenium"
223 test.cases="test.emma.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000224 <extraclasspaths>
225 <path refid="test.extraclasspath" />
226 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
227 </extraclasspaths>
228 </gwt.junit>
229 </target>
230
231 <target name="test.draft.remote"
232 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000233 description="Run draft compiled tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000234 if="gwt.hosts.web.remote"
235 unless="test.draft.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000236 <echo message="Performing draft remote testing at ${gwt.hosts.web.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000237 <property name="test.draft.remote.args" value="${test.args.web.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000238 <fileset id="test.draft.remote.tests" dir="${javac.junit.out}"
239 includes="${gwt.junit.testcase.web.includes}"
240 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000241 <gwt.junit test.name="test.draft.remote"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000242 test.args="${test.draft.remote.args} -draftCompile -prod -standardsMode -out www -runStyle RemoteWeb:${gwt.hosts.web.remote}"
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000243 test.out="${junit.out}/draft-remote"
244 test.cases="test.draft.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000245 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000246 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000247 </extraclasspaths>
248 </gwt.junit>
spoon@google.comd0b00f82009-03-27 14:58:53 +0000249 </target>
250
jat@google.combf79ddb2009-10-14 07:44:30 +0000251 <target name="test.nometa.remote"
jat@google.com57b69402009-10-14 18:08:29 +0000252 description="Run -XdisableClassMetadata tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000253 if="gwt.hosts.web.remote"
254 unless="test.nometa.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000255 <echo message="Performing nometa remote testing at ${gwt.hosts.web.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000256 <property name="test.nometa.remote.args" value="${test.args.web.remote}" />
jat@google.com3d3977f2009-10-16 04:52:05 +0000257 <fileset id="test.nometa.remote.tests" dir="${javac.junit.out}"
jat@google.com57b69402009-10-14 18:08:29 +0000258 includes="${gwt.junit.testcase.web.includes}"
259 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000260 <gwt.junit test.name="test.nometa.remote"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000261 test.args="${test.nometa.remote.args} -XdisableClassMetadata -prod -standardsMode -out www -runStyle RemoteWeb:${gwt.hosts.web.remote}"
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000262 test.out="${junit.out}/nometa-remote"
263 test.cases="test.nometa.remote.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000264 <extraclasspaths>
265 <path refid="test.extraclasspath" />
266 </extraclasspaths>
267 </gwt.junit>
268 </target>
269
270 <target name="test.selenium" depends="test.web.selenium">
271 <echo message="DEPRECATED: test.selenium has been renamed test.web.selenium"/>
272 </target>
273
274 <target name="test.web.selenium"
275 depends="compile, compile.tests"
276 description="Run web tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000277 if="gwt.hosts.web.selenium"
278 unless="test.web.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000279 <echo message="Performing web testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000280 <property name="test.web.selenium.args" value="${test.args.web.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000281 <fileset id="test.web.selenium.tests" dir="${javac.junit.out}"
282 includes="${gwt.junit.testcase.web.includes}"
283 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000284 <gwt.junit test.name="test.web.selenium"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000285 test.args='${test.web.selenium.args} -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}"'
jat@google.com57b69402009-10-14 18:08:29 +0000286 test.out="${junit.out}/web-selenium"
287 test.cases="test.web.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000288 <extraclasspaths>
289 <path refid="test.extraclasspath" />
290 </extraclasspaths>
291 </gwt.junit>
292 </target>
293
294 <target name="test.dev.selenium"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000295 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000296 description="Run dev-mode tests using Selenium RC servers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000297 if="gwt.hosts.dev.selenium"
298 unless="test.dev.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000299 <echo message="Performing dev-mode testing using Selenium RC at ${gwt.hosts.dev.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000300 <property name="test.dev.selenium.args" value="${test.args.dev.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000301 <fileset id="test.dev.selenium.tests" dir="${javac.junit.out}"
302 includes="${gwt.junit.testcase.dev.includes}"
303 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000304 <gwt.junit test.name="test.dev.selenium"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000305 test.args='${test.dev.selenium.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}"'
jat@google.com57b69402009-10-14 18:08:29 +0000306 test.out="${junit.out}/dev-selenium"
307 test.cases="test.dev.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000308 <extraclasspaths>
309 <path refid="test.extraclasspath" />
310 </extraclasspaths>
311 </gwt.junit>
312 </target>
313
314 <target name="test.nometa.selenium"
315 description="Run nometa tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000316 if="gwt.hosts.web.selenium"
317 unless="test.nometa.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000318 <echo message="Performing nometa testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000319 <property name="test.nometa.selenium.args"
320 value="${test.args.web.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000321 <fileset id="test.nometa.selenium.tests" dir="${javac.junit.out}"
322 includes="${gwt.junit.testcase.web.includes}"
323 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000324 <gwt.junit test.name="test.nometa.selenium"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000325 test.args='${test.nometa.selenium.args} -XdisableClassMetadata -prod -standardsMode -out www -runStyle "Selenium:${gwt.hosts.web.selenium}"'
jat@google.com57b69402009-10-14 18:08:29 +0000326 test.out="${junit.out}/nometa-selenium"
327 test.cases="test.nometa.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000328 <extraclasspaths>
329 <path refid="test.extraclasspath" />
330 </extraclasspaths>
331 </gwt.junit>
332 </target>
333
334 <target name="test.draft.selenium"
jat@google.com57b69402009-10-14 18:08:29 +0000335 description="Run draft compiled tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000336 if="gwt.hosts.web.selenium"
337 unless="test.draft.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000338 <echo message="Performing draft testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000339 <property name="test.draft.selenium.args"
340 value="${test.args.web.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000341 <fileset id="test.draft.selenium.tests" dir="${javac.junit.out}"
342 includes="${gwt.junit.testcase.web.includes}"
343 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000344 <gwt.junit test.name="test.draft.selenium"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000345 test.args='${test.draft.selenium.args} -draftCompile -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}"'
jat@google.com57b69402009-10-14 18:08:29 +0000346 test.out="${junit.out}/draft-selenium"
347 test.cases="test.draft.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000348 <extraclasspaths>
349 <path refid="test.extraclasspath" />
350 </extraclasspaths>
351 </gwt.junit>
352 </target>
353
354 <target name="test.emma.htmlunit"
355 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000356 description="Run emma tests with HtmlUnit"
357 unless="test.emma.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000358 <fileset id="test.emma.htmlunit.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000359 includes="${gwt.junit.testcase.dev.includes}"
360 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000361 <gwt.junit test.name="test.emma.htmlunit"
362 test.args="${test.args} -standardsMode "
jat@google.com57b69402009-10-14 18:08:29 +0000363 test.out="${junit.out}/emma-htmlunit"
364 test.cases="test.emma.htmlunit.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000365 <extraclasspaths>
366 <path refid="test.extraclasspath" />
367 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
368 </extraclasspaths>
369 </gwt.junit>
370 </target>
371
372 <target name="test.dev.htmlunit"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000373 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000374 description="Run dev-mode tests with HtmlUnit."
375 unless="test.dev.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000376 <fileset id="test.dev.htmlunit.tests" dir="${javac.junit.out}"
377 includes="${gwt.junit.testcase.dev.includes}"
378 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000379 <gwt.junit test.name="test.dev.htmlunit"
380 test.args="${test.args} -standardsMode "
jlabanca@google.com2707b142009-11-04 17:47:36 +0000381 test.out="${junit.out}/dev-htmlunit"
jat@google.com57b69402009-10-14 18:08:29 +0000382 test.cases="test.dev.htmlunit.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000383 <extraclasspaths>
384 <path refid="test.extraclasspath" />
385 </extraclasspaths>
386 </gwt.junit>
387 </target>
388
389 <target name="test.hosted.emma" depends="test.emma">
390 <echo message="DEPRECATED: test.hosted.emma has been renamed test.emma"/>
391 </target>
392
393 <target name="test.hosted" depends="test.dev">
394 <echo message="DEPRECATED: test.hosted has been renamed test.dev"/>
395 </target>
396
jat@google.combf79ddb2009-10-14 07:44:30 +0000397 <target name="test.web.htmlunit"
398 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000399 description="Run web-mode tests with HtmlUnit."
400 unless="test.web.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000401 <fileset id="test.web.htmlunit.tests" dir="${javac.junit.out}"
402 includes="${gwt.junit.testcase.web.includes}"
403 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000404 <gwt.junit test.name="test.web.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000405 test.args="${test.args} -out www -prod -standardsMode"
jat@google.com57b69402009-10-14 18:08:29 +0000406 test.out="${junit.out}/web-htmlunit"
407 test.cases="test.web.htmlunit.tests">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000408 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000409 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000410 </extraclasspaths>
411 </gwt.junit>
412 </target>
gwt.team.scottb5b5e6342007-02-22 21:34:23 +0000413
jat@google.combf79ddb2009-10-14 07:44:30 +0000414 <target name="test.nometa.htmlunit"
415 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000416 description="Run -XdisableClassMetadata tests with HtmlUnit."
417 unless="test.nometa.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000418 <fileset id="test.nometa.htmlunit.tests" dir="${javac.junit.out}"
419 includes="${gwt.junit.testcase.web.includes}"
420 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000421 <gwt.junit test.name="test.nometa.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000422 test.args="${test.args} -XdisableClassMetadata -out www -prod -standardsMode"
jat@google.com57b69402009-10-14 18:08:29 +0000423 test.out="${junit.out}/nometa-htmlunit"
424 test.cases="test.nometa.htmlunit.tests" >
bobv@google.comc0e308f2009-02-19 01:08:17 +0000425 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000426 <path refid="test.extraclasspath" />
bobv@google.comc0e308f2009-02-19 01:08:17 +0000427 </extraclasspaths>
428 </gwt.junit>
429 </target>
430
jat@google.combf79ddb2009-10-14 07:44:30 +0000431 <target name="test.draft.htmlunit"
432 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000433 description="Run draft compiled HtmlUnit tests (no batching on purpose)"
434 unless="test.draft.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000435 <fileset id="test.draft.htmlunit.tests" dir="${javac.junit.out}"
436 includes="${gwt.junit.testcase.web.includes}"
437 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000438 <gwt.junit test.name="test.draft.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000439 test.args="${test.args} -draftCompile -out www -prod -standardsMode"
jat@google.com57b69402009-10-14 18:08:29 +0000440 test.out="${junit.out}/draft-htmlunit"
441 test.cases="test.draft.htmlunit.tests" >
bobv@google.com62773b12009-01-29 22:31:44 +0000442 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000443 <path refid="test.extraclasspath" />
bobv@google.com62773b12009-01-29 22:31:44 +0000444 </extraclasspaths>
445 </gwt.junit>
446 </target>
447
jat@google.combf79ddb2009-10-14 07:44:30 +0000448 <target name="test"
449 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000450 description="Run all tests for this project.">
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000451 <!-- Prevent compilation for every target. -->
452 <property name="compile.complete" value="true"/>
453 <property name="compile.tests.complete" value="true"/>
454
jat@google.com57b69402009-10-14 18:08:29 +0000455 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
456 message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
jlabanca@google.comf78c54b2009-07-16 17:19:20 +0000457 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000458 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
459 threadCount="${gwt.threadCount}">
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000460 <!--
461 The remote targets must be run sequentially or BrowserManager will queue
462 requests, which will cause some tests to timeout while waiting.
463 -->
464 <sequential>
465 <antcall target="test.dev.remote"/>
466 <antcall target="test.emma.remote"/>
467 <antcall target="test.web.remote"/>
468 <antcall target="test.draft.remote"/>
469 <antcall target="test.nometa.remote"/>
470 </sequential>
471 <antcall target="test.dev.selenium"/>
472 <antcall target="test.emma.selenium"/>
473 <antcall target="test.web.selenium"/>
474 <antcall target="test.draft.selenium"/>
475 <antcall target="test.nometa.selenium"/>
amitmanjhi@google.coma7c82b02010-03-25 14:19:13 +0000476 <antcall target="test.dev.htmlunit"/>
477 <antcall target="test.emma.htmlunit"/>
478 <antcall target="test.web.htmlunit"/>
479 <antcall target="test.draft.htmlunit"/>
480 <antcall target="test.nometa.htmlunit"/>
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000481 </parallel>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000482 </limit>
483 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000484
jat@google.com57b69402009-10-14 18:08:29 +0000485 <target name="test.htmlunit"
486 depends="compile, compile.tests"
487 description="Run all HtmlUnit tests">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000488 <!-- Prevent compilation for every target. -->
489 <property name="compile.complete" value="true"/>
490 <property name="compile.tests.complete" value="true"/>
nchalko@google.com90f14a02010-07-28 19:08:32 +0000491
jat@google.com57b69402009-10-14 18:08:29 +0000492 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
493 message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
494 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000495 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
496 threadCount="${gwt.threadCount}">
jat@google.com57b69402009-10-14 18:08:29 +0000497 <antcall target="test.dev.htmlunit"/>
498 <antcall target="test.emma.htmlunit"/>
499 <antcall target="test.web.htmlunit"/>
500 <antcall target="test.draft.htmlunit"/>
501 <antcall target="test.nometa.htmlunit"/>
jat@google.com57b69402009-10-14 18:08:29 +0000502 </parallel>
503 </limit>
504 </target>
505
jat@google.combf79ddb2009-10-14 07:44:30 +0000506 <target name="test.dev"
507 depends="compile, compile.tests"
508 description="Run dev-mode tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000509 <!-- Prevent compilation for every target. -->
510 <property name="compile.complete" value="true"/>
511 <property name="compile.tests.complete" value="true"/>
512
jat@google.combf79ddb2009-10-14 07:44:30 +0000513 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000514 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
515 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000516 <antcall target="test.dev.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000517 <!-- no-op unless gwt.hosts.dev.remote is defined -->
518 <antcall target="test.dev.remote"/>
519 <!-- no-op unless gwt.hosts.dev.selenium is defined -->
520 <antcall target="test.dev.selenium"/>
521 </parallel>
522 </limit>
523 </target>
524
525 <target name="test.web"
526 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000527 description="Run web-mode tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000528 <!-- Prevent compilation for every target. -->
529 <property name="compile.complete" value="true"/>
530 <property name="compile.tests.complete" value="true"/>
531
jat@google.combf79ddb2009-10-14 07:44:30 +0000532 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000533 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
534 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000535 <antcall target="test.web.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000536 <!-- no-op unless gwt.hosts.web.remote is defined -->
537 <antcall target="test.web.remote"/>
538 <!-- no-op unless gwt.hosts.web.selenium is defined -->
539 <antcall target="test.web.selenium"/>
540 </parallel>
541 </limit>
542 </target>
543
544 <target name="test.emma"
545 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000546 description="Run emma tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000547 <!-- Prevent compilation for every target. -->
548 <property name="compile.complete" value="true"/>
549 <property name="compile.tests.complete" value="true"/>
550
jat@google.combf79ddb2009-10-14 07:44:30 +0000551 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000552 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
553 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000554 <antcall target="test.emma.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000555 <!-- no-op unless gwt.hosts.dev.remote is defined -->
556 <antcall target="test.emma.remote"/>
557 <!-- no-op unless gwt.hosts.dev.selenium is defined -->
558 <antcall target="test.emma.selenium"/>
559 </parallel>
560 </limit>
561 </target>
562
563 <target name="test.draft"
564 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000565 description="Run draft compiled tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000566 <!-- Prevent compilation for every target. -->
567 <property name="compile.complete" value="true"/>
568 <property name="compile.tests.complete" value="true"/>
569
jat@google.combf79ddb2009-10-14 07:44:30 +0000570 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000571 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
572 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000573 <antcall target="test.draft.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000574 <!-- no-op unless gwt.hosts.web.remote is defined -->
575 <antcall target="test.draft.remote"/>
576 <!-- no-op unless gwt.hosts.web.selenium is defined -->
577 <antcall target="test.draft.selenium"/>
578 </parallel>
579 </limit>
580 </target>
581
582 <target name="test.nometa"
583 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000584 description="Run -XdisableClassMetadata tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000585 <!-- Prevent compilation for every target. -->
586 <property name="compile.complete" value="true"/>
587 <property name="compile.tests.complete" value="true"/>
588
jat@google.combf79ddb2009-10-14 07:44:30 +0000589 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000590 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
591 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000592 <antcall target="test.web.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000593 <!-- no-op unless gwt.hosts.web.remote is defined -->
594 <antcall target="test.nometa.remote"/>
595 <!-- no-op unless gwt.hosts.web.selenium is defined -->
596 <antcall target="test.nometa.selenium"/>
597 </parallel>
598 </limit>
599 </target>
600
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +0000601 <target name="benchmark"
602 description="Run all benchmarks for this project.">
603
604 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
605 message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
606 <limit failonerror="true" hours="${benchmark.timeout}">
607 <!-- no-op unless gwt.hosts.web.remote is defined -->
608 <antcall target="benchmark.web.remote"/>
609 <!-- no-op unless gwt.hosts.web.selenium is defined -->
610 <antcall target="benchmark.web.selenium"/>
611 <antcall target="benchmark.web.htmlunit"/>
612 </limit>
613 </target>
614
615 <target name="benchmark.web.htmlunit"
616 depends="compile, compile.tests"
617 description="Run web-mode benchmarks with HtmlUnit."
618 unless="benchmark.web.htmlunit.disable">
619 <fileset id="benchmark.web.htmlunit.tests" dir="${javac.junit.out}"
620 includes="${gwt.benchmark.testcase.web.includes}"
621 excludes="${gwt.benchmark.testcase.web.excludes}" />
622 <gwt.junit test.name="benchmark.web.htmlunit"
623 test.args="${test.args} -testMethodTimeout ${benchmark.timeout} -out www -prod -standardsMode"
624 test.out="${junit.out}/web-htmlunit-benchmark"
625 test.cases="benchmark.web.htmlunit.tests" >
626 <extraclasspaths>
627 <path refid="test.extraclasspath" />
628 </extraclasspaths>
629 </gwt.junit>
630 </target>
631
632 <target name="benchmark.web.selenium"
633 depends="compile, compile.tests"
634 description="Run web benchmark using Selenium RC"
635 if="gwt.hosts.web.selenium"
636 unless="benchmark.web.selenium.disable">
637 <echo message="Performing web benchmarking using Selenium RC at ${gwt.hosts.web.selenium}" />
638 <property name="test.web.selenium.args" value="${test.args.web.selenium}" />
639 <fileset id="benchmark.web.selenium.tests" dir="${javac.junit.out}"
640 includes="${gwt.benchmark.testcase.web.includes}"
641 excludes="${gwt.benchmark.testcase.web.excludes}" />
642 <gwt.junit test.name="benchmark.web.selenium"
643 test.args='${test.web.selenium.args} -testMethodTimeout ${benchmark.timeout} -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}"'
644 test.out="${junit.out}/web-selenium-benchmark"
645 test.cases="benchmark.web.selenium.tests" >
646 <extraclasspaths>
647 <path refid="test.extraclasspath" />
648 </extraclasspaths>
649 </gwt.junit>
650 </target>
651
652 <target name="benchmark.web.remote"
653 depends="compile, compile.tests"
654 description="Run web benchmarks with remote browsers"
655 if="gwt.hosts.web.remote"
656 unless="benchmark.web.remote.disable">
657 <echo message="Performing web remote benchmarking at ${gwt.hosts.web.remote}" />
658 <property name="test.web.remote.args" value="${test.args.web.remote}" />
659 <fileset id="benchmark.web.remote.tests" dir="${javac.junit.out}"
660 includes="${gwt.benchmark.testcase.web.includes}"
661 excludes="${gwt.benchmark.testcase.web.excludes}" />
662 <gwt.junit test.name="benchmark.web.remote"
663 test.args="${test.web.remote.args} -testMethodTimeout ${benchmark.timeout} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote}"
664 test.out="${junit.out}/web-remote-benchmark"
665 test.cases="benchmark.web.remote.tests" >
666 <extraclasspaths>
667 <path refid="test.extraclasspath" />
668 </extraclasspaths>
669 </gwt.junit>
670 </target>
671
jat@google.com57b69402009-10-14 18:08:29 +0000672 <!--
673 Merges coverage data for the entire project
674 -->
675 <target name="emma.merge">
jlabanca@google.com81244562009-08-05 19:55:36 +0000676 <delete dir="${emma.merged.out}" />
677 <mkdir dir="${emma.merged.out}" />
678 <emma>
679 <merge outfile="${emma.merged.out}/merged.emma" >
680 <fileset dir="${junit.out}" >
681 <include name="**/*.emma" />
682 <exclude name="${emma.merged.out}/merged.emma" />
683 </fileset>
684 </merge>
685 </emma>
686 <emma>
687 <report sourcepath="${project.classpath.src}">
688 <fileset file="${javac.emma.out}/metadata.emma" />
689 <fileset file="${emma.merged.out}/merged.emma" />
690 <txt outfile="${emma.merged.out}/coverage.txt" />
691 <html outfile="${emma.merged.out}/coverage.html" />
692 <xml outfile="${emma.merged.out}/coverage.xml" />
693 </report>
694 </emma>
695 </target>
696
jat@google.combf79ddb2009-10-14 07:44:30 +0000697 <target name="clean"
698 description="Cleans this project's intermediate and output files">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000699 <delete dir="${project.build}" />
700 <delete file="${project.lib}" />
701 </target>
jat@google.com57b69402009-10-14 18:08:29 +0000702
703 <target name="presubmit" depends="test, checkstyle"
704 description="runs the gwt api checker, user checkstyle, and user tests">
spoon@google.comd0b00f82009-03-27 14:58:53 +0000705 <gwt.ant dir=".." target="apicheck-nobuild"/>
jgw@google.coma3509e22009-02-06 21:06:24 +0000706 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000707</project>