blob: b9ab352311ed9c69dafd292d1676a000dcda2c1e [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.comb1077dc2010-08-13 13:36:43 +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"/>
nchalko@google.comb1077dc2010-08-13 13:36:43 +0000135 <exclude name="javax/validation/super/javax/validation/spi/ConfigurationState.java"/>
136 <exclude name="javax/validation/super/javax/validation/MessageInterpolator.java"/>
137 <exclude name="javax/validation/super/javax/validation/Configuration.java"/>
138 <exclude name="javax/validation/super/javax/validation/Validation.java"/>
139 </fileset>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000140 <fileset dir="super/com/google/gwt/emul" />
141 <fileset dir="super/com/google/gwt/junit/translatable" />
142 </gwt.checkstyle>
scottb@google.com6de97562009-11-03 21:04:24 +0000143 <gwt.checkstyle.tests>
144 <fileset dir="test">
scottb@google.com391ffa02009-11-03 22:04:04 +0000145 <include name="com/google/**/*.java" />
146 <include name="test/**" />
scottb@google.com6de97562009-11-03 21:04:24 +0000147 </fileset>
148 </gwt.checkstyle.tests>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000149 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000150
jat@google.combf79ddb2009-10-14 07:44:30 +0000151 <target name="test.remoteweb" depends="test.web.remote">
152 <echo message="DEPRECATED: test.remoteweb has been renamed test.web.remote"/>
153 </target>
154
155 <target name="test.web.remote"
jat@google.com57b69402009-10-14 18:08:29 +0000156 description="Run web test with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000157 if="gwt.hosts.web.remote"
158 unless="test.web.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000159 <echo message="Performing web remote testing at ${gwt.hosts.web.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000160 <property name="test.web.remote.args" value="${test.args.web.remote}" />
jat@google.com3d3977f2009-10-16 04:52:05 +0000161 <fileset id="test.web.remote.tests" dir="${javac.junit.out}"
162 includes="${gwt.junit.testcase.web.includes}"
163 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000164 <gwt.junit test.name="test.web.remote"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000165 test.args="${test.web.remote.args} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote}"
jat@google.com3d3977f2009-10-16 04:52:05 +0000166 test.out="${junit.out}/web-remote"
167 test.cases="test.web.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000168 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000169 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000170 </extraclasspaths>
171 </gwt.junit>
172 </target>
zundel@google.com29666c82008-06-04 16:07:53 +0000173
jat@google.combf79ddb2009-10-14 07:44:30 +0000174 <target name="test.dev.remote"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000175 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000176 description="Run dev-mode tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000177 if="gwt.hosts.dev.remote"
178 unless="test.dev.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000179 <echo message="Performing dev-mode remote testing at ${gwt.remote.browsers}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000180 <property name="test.dev.remote.args" value="${test.args.dev.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000181 <fileset id="test.dev.remote.tests" dir="${javac.junit.out}"
182 includes="${gwt.junit.testcase.dev.includes}"
183 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000184 <gwt.junit test.name="test.dev.remote"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000185 test.args="${test.dev.remote.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote}"
jat@google.com57b69402009-10-14 18:08:29 +0000186 test.out="${junit.out}/dev-remote" test.cases="test.dev.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000187 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000188 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000189 </extraclasspaths>
190 </gwt.junit>
191 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000192
jat@google.combf79ddb2009-10-14 07:44:30 +0000193 <target name="test.emma.remote"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000194 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000195 description="Run emma tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000196 if="gwt.hosts.dev.remote"
197 unless="test.emma.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000198 <echo message="Performing emma remote testing at ${gwt.hosts.dev.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000199 <property name="test.emma.remote.args" value="${test.args.dev.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000200 <fileset id="test.emma.remote.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000201 includes="${gwt.junit.testcase.dev.includes}"
202 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000203 <gwt.junit test.name="test.emma.remote"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000204 test.args="${test.emma.remote.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote}"
jat@google.com57b69402009-10-14 18:08:29 +0000205 test.out="${junit.out}/emma-remote"
206 test.cases="test.emma.remote.tests" >
jgw@google.coma3509e22009-02-06 21:06:24 +0000207 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000208 <path refid="test.extraclasspath" />
jgw@google.coma3509e22009-02-06 21:06:24 +0000209 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
210 </extraclasspaths>
211 </gwt.junit>
212 </target>
213
jat@google.combf79ddb2009-10-14 07:44:30 +0000214 <target name="test.emma.selenium"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000215 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000216 description="Run emma tests with Selenium-RC servers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000217 if="gwt.hosts.dev.selenium"
218 unless="test.emma.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000219 <echo message="Performing emma selenium testing at ${gwt.hosts.dev.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000220 <property name="test.emma.selenium.args" value="${test.args.dev.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000221 <fileset id="test.emma.selenium.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000222 includes="${gwt.junit.testcase.dev.includes}"
223 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000224 <gwt.junit test.name="test.emma.selenium"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000225 test.args='${test.emma.selenium.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}"'
jat@google.com57b69402009-10-14 18:08:29 +0000226 test.out="${junit.out}/emma-selenium"
227 test.cases="test.emma.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000228 <extraclasspaths>
229 <path refid="test.extraclasspath" />
230 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
231 </extraclasspaths>
232 </gwt.junit>
233 </target>
234
235 <target name="test.draft.remote"
236 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000237 description="Run draft compiled tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000238 if="gwt.hosts.web.remote"
239 unless="test.draft.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000240 <echo message="Performing draft remote testing at ${gwt.hosts.web.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000241 <property name="test.draft.remote.args" value="${test.args.web.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000242 <fileset id="test.draft.remote.tests" dir="${javac.junit.out}"
243 includes="${gwt.junit.testcase.web.includes}"
244 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000245 <gwt.junit test.name="test.draft.remote"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000246 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 +0000247 test.out="${junit.out}/draft-remote"
248 test.cases="test.draft.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000249 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000250 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000251 </extraclasspaths>
252 </gwt.junit>
spoon@google.comd0b00f82009-03-27 14:58:53 +0000253 </target>
254
jat@google.combf79ddb2009-10-14 07:44:30 +0000255 <target name="test.nometa.remote"
jat@google.com57b69402009-10-14 18:08:29 +0000256 description="Run -XdisableClassMetadata tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000257 if="gwt.hosts.web.remote"
258 unless="test.nometa.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000259 <echo message="Performing nometa remote testing at ${gwt.hosts.web.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000260 <property name="test.nometa.remote.args" value="${test.args.web.remote}" />
jat@google.com3d3977f2009-10-16 04:52:05 +0000261 <fileset id="test.nometa.remote.tests" dir="${javac.junit.out}"
jat@google.com57b69402009-10-14 18:08:29 +0000262 includes="${gwt.junit.testcase.web.includes}"
263 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000264 <gwt.junit test.name="test.nometa.remote"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000265 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 +0000266 test.out="${junit.out}/nometa-remote"
267 test.cases="test.nometa.remote.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000268 <extraclasspaths>
269 <path refid="test.extraclasspath" />
270 </extraclasspaths>
271 </gwt.junit>
272 </target>
273
274 <target name="test.selenium" depends="test.web.selenium">
275 <echo message="DEPRECATED: test.selenium has been renamed test.web.selenium"/>
276 </target>
277
278 <target name="test.web.selenium"
279 depends="compile, compile.tests"
280 description="Run web tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000281 if="gwt.hosts.web.selenium"
282 unless="test.web.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000283 <echo message="Performing web testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000284 <property name="test.web.selenium.args" value="${test.args.web.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000285 <fileset id="test.web.selenium.tests" dir="${javac.junit.out}"
286 includes="${gwt.junit.testcase.web.includes}"
287 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000288 <gwt.junit test.name="test.web.selenium"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000289 test.args='${test.web.selenium.args} -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}"'
jat@google.com57b69402009-10-14 18:08:29 +0000290 test.out="${junit.out}/web-selenium"
291 test.cases="test.web.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000292 <extraclasspaths>
293 <path refid="test.extraclasspath" />
294 </extraclasspaths>
295 </gwt.junit>
296 </target>
297
298 <target name="test.dev.selenium"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000299 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000300 description="Run dev-mode tests using Selenium RC servers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000301 if="gwt.hosts.dev.selenium"
302 unless="test.dev.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000303 <echo message="Performing dev-mode testing using Selenium RC at ${gwt.hosts.dev.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000304 <property name="test.dev.selenium.args" value="${test.args.dev.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000305 <fileset id="test.dev.selenium.tests" dir="${javac.junit.out}"
306 includes="${gwt.junit.testcase.dev.includes}"
307 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000308 <gwt.junit test.name="test.dev.selenium"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000309 test.args='${test.dev.selenium.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}"'
jat@google.com57b69402009-10-14 18:08:29 +0000310 test.out="${junit.out}/dev-selenium"
311 test.cases="test.dev.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000312 <extraclasspaths>
313 <path refid="test.extraclasspath" />
314 </extraclasspaths>
315 </gwt.junit>
316 </target>
317
318 <target name="test.nometa.selenium"
319 description="Run nometa tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000320 if="gwt.hosts.web.selenium"
321 unless="test.nometa.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000322 <echo message="Performing nometa testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000323 <property name="test.nometa.selenium.args"
324 value="${test.args.web.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000325 <fileset id="test.nometa.selenium.tests" dir="${javac.junit.out}"
326 includes="${gwt.junit.testcase.web.includes}"
327 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000328 <gwt.junit test.name="test.nometa.selenium"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000329 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 +0000330 test.out="${junit.out}/nometa-selenium"
331 test.cases="test.nometa.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000332 <extraclasspaths>
333 <path refid="test.extraclasspath" />
334 </extraclasspaths>
335 </gwt.junit>
336 </target>
337
338 <target name="test.draft.selenium"
jat@google.com57b69402009-10-14 18:08:29 +0000339 description="Run draft compiled tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000340 if="gwt.hosts.web.selenium"
341 unless="test.draft.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000342 <echo message="Performing draft testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000343 <property name="test.draft.selenium.args"
344 value="${test.args.web.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000345 <fileset id="test.draft.selenium.tests" dir="${javac.junit.out}"
346 includes="${gwt.junit.testcase.web.includes}"
347 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000348 <gwt.junit test.name="test.draft.selenium"
jlabanca@google.com6e5c7662010-04-20 12:32:24 +0000349 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 +0000350 test.out="${junit.out}/draft-selenium"
351 test.cases="test.draft.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000352 <extraclasspaths>
353 <path refid="test.extraclasspath" />
354 </extraclasspaths>
355 </gwt.junit>
356 </target>
357
358 <target name="test.emma.htmlunit"
359 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000360 description="Run emma tests with HtmlUnit"
361 unless="test.emma.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000362 <fileset id="test.emma.htmlunit.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000363 includes="${gwt.junit.testcase.dev.includes}"
364 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000365 <gwt.junit test.name="test.emma.htmlunit"
366 test.args="${test.args} -standardsMode "
jat@google.com57b69402009-10-14 18:08:29 +0000367 test.out="${junit.out}/emma-htmlunit"
368 test.cases="test.emma.htmlunit.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000369 <extraclasspaths>
370 <path refid="test.extraclasspath" />
371 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
372 </extraclasspaths>
373 </gwt.junit>
374 </target>
375
376 <target name="test.dev.htmlunit"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000377 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000378 description="Run dev-mode tests with HtmlUnit."
379 unless="test.dev.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000380 <fileset id="test.dev.htmlunit.tests" dir="${javac.junit.out}"
381 includes="${gwt.junit.testcase.dev.includes}"
382 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000383 <gwt.junit test.name="test.dev.htmlunit"
384 test.args="${test.args} -standardsMode "
jlabanca@google.com2707b142009-11-04 17:47:36 +0000385 test.out="${junit.out}/dev-htmlunit"
jat@google.com57b69402009-10-14 18:08:29 +0000386 test.cases="test.dev.htmlunit.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000387 <extraclasspaths>
388 <path refid="test.extraclasspath" />
389 </extraclasspaths>
390 </gwt.junit>
391 </target>
392
393 <target name="test.hosted.emma" depends="test.emma">
394 <echo message="DEPRECATED: test.hosted.emma has been renamed test.emma"/>
395 </target>
396
397 <target name="test.hosted" depends="test.dev">
398 <echo message="DEPRECATED: test.hosted has been renamed test.dev"/>
399 </target>
400
jat@google.combf79ddb2009-10-14 07:44:30 +0000401 <target name="test.web.htmlunit"
402 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000403 description="Run web-mode tests with HtmlUnit."
404 unless="test.web.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000405 <fileset id="test.web.htmlunit.tests" dir="${javac.junit.out}"
406 includes="${gwt.junit.testcase.web.includes}"
407 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000408 <gwt.junit test.name="test.web.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000409 test.args="${test.args} -out www -prod -standardsMode"
jat@google.com57b69402009-10-14 18:08:29 +0000410 test.out="${junit.out}/web-htmlunit"
411 test.cases="test.web.htmlunit.tests">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000412 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000413 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000414 </extraclasspaths>
415 </gwt.junit>
416 </target>
gwt.team.scottb5b5e6342007-02-22 21:34:23 +0000417
jat@google.combf79ddb2009-10-14 07:44:30 +0000418 <target name="test.nometa.htmlunit"
419 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000420 description="Run -XdisableClassMetadata tests with HtmlUnit."
421 unless="test.nometa.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000422 <fileset id="test.nometa.htmlunit.tests" dir="${javac.junit.out}"
423 includes="${gwt.junit.testcase.web.includes}"
424 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000425 <gwt.junit test.name="test.nometa.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000426 test.args="${test.args} -XdisableClassMetadata -out www -prod -standardsMode"
jat@google.com57b69402009-10-14 18:08:29 +0000427 test.out="${junit.out}/nometa-htmlunit"
428 test.cases="test.nometa.htmlunit.tests" >
bobv@google.comc0e308f2009-02-19 01:08:17 +0000429 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000430 <path refid="test.extraclasspath" />
bobv@google.comc0e308f2009-02-19 01:08:17 +0000431 </extraclasspaths>
432 </gwt.junit>
433 </target>
434
jat@google.combf79ddb2009-10-14 07:44:30 +0000435 <target name="test.draft.htmlunit"
436 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000437 description="Run draft compiled HtmlUnit tests (no batching on purpose)"
438 unless="test.draft.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000439 <fileset id="test.draft.htmlunit.tests" dir="${javac.junit.out}"
440 includes="${gwt.junit.testcase.web.includes}"
441 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000442 <gwt.junit test.name="test.draft.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000443 test.args="${test.args} -draftCompile -out www -prod -standardsMode"
jat@google.com57b69402009-10-14 18:08:29 +0000444 test.out="${junit.out}/draft-htmlunit"
445 test.cases="test.draft.htmlunit.tests" >
bobv@google.com62773b12009-01-29 22:31:44 +0000446 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000447 <path refid="test.extraclasspath" />
bobv@google.com62773b12009-01-29 22:31:44 +0000448 </extraclasspaths>
449 </gwt.junit>
450 </target>
451
jat@google.combf79ddb2009-10-14 07:44:30 +0000452 <target name="test"
453 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000454 description="Run all tests for this project.">
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000455 <!-- Prevent compilation for every target. -->
456 <property name="compile.complete" value="true"/>
457 <property name="compile.tests.complete" value="true"/>
458
jat@google.com57b69402009-10-14 18:08:29 +0000459 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
460 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 +0000461 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000462 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
463 threadCount="${gwt.threadCount}">
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000464 <!--
465 The remote targets must be run sequentially or BrowserManager will queue
466 requests, which will cause some tests to timeout while waiting.
467 -->
468 <sequential>
469 <antcall target="test.dev.remote"/>
470 <antcall target="test.emma.remote"/>
471 <antcall target="test.web.remote"/>
472 <antcall target="test.draft.remote"/>
473 <antcall target="test.nometa.remote"/>
474 </sequential>
475 <antcall target="test.dev.selenium"/>
476 <antcall target="test.emma.selenium"/>
477 <antcall target="test.web.selenium"/>
478 <antcall target="test.draft.selenium"/>
479 <antcall target="test.nometa.selenium"/>
amitmanjhi@google.coma7c82b02010-03-25 14:19:13 +0000480 <antcall target="test.dev.htmlunit"/>
481 <antcall target="test.emma.htmlunit"/>
482 <antcall target="test.web.htmlunit"/>
483 <antcall target="test.draft.htmlunit"/>
484 <antcall target="test.nometa.htmlunit"/>
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000485 </parallel>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000486 </limit>
487 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000488
jat@google.com57b69402009-10-14 18:08:29 +0000489 <target name="test.htmlunit"
490 depends="compile, compile.tests"
491 description="Run all HtmlUnit tests">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000492 <!-- Prevent compilation for every target. -->
493 <property name="compile.complete" value="true"/>
494 <property name="compile.tests.complete" value="true"/>
nchalko@google.com90f14a02010-07-28 19:08:32 +0000495
jat@google.com57b69402009-10-14 18:08:29 +0000496 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
497 message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
498 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000499 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
500 threadCount="${gwt.threadCount}">
jat@google.com57b69402009-10-14 18:08:29 +0000501 <antcall target="test.dev.htmlunit"/>
502 <antcall target="test.emma.htmlunit"/>
503 <antcall target="test.web.htmlunit"/>
504 <antcall target="test.draft.htmlunit"/>
505 <antcall target="test.nometa.htmlunit"/>
jat@google.com57b69402009-10-14 18:08:29 +0000506 </parallel>
507 </limit>
508 </target>
509
jat@google.combf79ddb2009-10-14 07:44:30 +0000510 <target name="test.dev"
511 depends="compile, compile.tests"
512 description="Run dev-mode tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000513 <!-- Prevent compilation for every target. -->
514 <property name="compile.complete" value="true"/>
515 <property name="compile.tests.complete" value="true"/>
516
jat@google.combf79ddb2009-10-14 07:44:30 +0000517 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000518 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
519 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000520 <antcall target="test.dev.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000521 <!-- no-op unless gwt.hosts.dev.remote is defined -->
522 <antcall target="test.dev.remote"/>
523 <!-- no-op unless gwt.hosts.dev.selenium is defined -->
524 <antcall target="test.dev.selenium"/>
525 </parallel>
526 </limit>
527 </target>
528
529 <target name="test.web"
530 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000531 description="Run web-mode tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000532 <!-- Prevent compilation for every target. -->
533 <property name="compile.complete" value="true"/>
534 <property name="compile.tests.complete" value="true"/>
535
jat@google.combf79ddb2009-10-14 07:44:30 +0000536 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000537 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
538 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000539 <antcall target="test.web.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000540 <!-- no-op unless gwt.hosts.web.remote is defined -->
541 <antcall target="test.web.remote"/>
542 <!-- no-op unless gwt.hosts.web.selenium is defined -->
543 <antcall target="test.web.selenium"/>
544 </parallel>
545 </limit>
546 </target>
547
548 <target name="test.emma"
549 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000550 description="Run emma tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000551 <!-- Prevent compilation for every target. -->
552 <property name="compile.complete" value="true"/>
553 <property name="compile.tests.complete" value="true"/>
554
jat@google.combf79ddb2009-10-14 07:44:30 +0000555 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000556 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
557 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000558 <antcall target="test.emma.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000559 <!-- no-op unless gwt.hosts.dev.remote is defined -->
560 <antcall target="test.emma.remote"/>
561 <!-- no-op unless gwt.hosts.dev.selenium is defined -->
562 <antcall target="test.emma.selenium"/>
563 </parallel>
564 </limit>
565 </target>
566
567 <target name="test.draft"
568 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000569 description="Run draft compiled tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000570 <!-- Prevent compilation for every target. -->
571 <property name="compile.complete" value="true"/>
572 <property name="compile.tests.complete" value="true"/>
573
jat@google.combf79ddb2009-10-14 07:44:30 +0000574 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000575 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
576 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000577 <antcall target="test.draft.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000578 <!-- no-op unless gwt.hosts.web.remote is defined -->
579 <antcall target="test.draft.remote"/>
580 <!-- no-op unless gwt.hosts.web.selenium is defined -->
581 <antcall target="test.draft.selenium"/>
582 </parallel>
583 </limit>
584 </target>
585
586 <target name="test.nometa"
587 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000588 description="Run -XdisableClassMetadata tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000589 <!-- Prevent compilation for every target. -->
590 <property name="compile.complete" value="true"/>
591 <property name="compile.tests.complete" value="true"/>
592
jat@google.combf79ddb2009-10-14 07:44:30 +0000593 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000594 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
595 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000596 <antcall target="test.web.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000597 <!-- no-op unless gwt.hosts.web.remote is defined -->
598 <antcall target="test.nometa.remote"/>
599 <!-- no-op unless gwt.hosts.web.selenium is defined -->
600 <antcall target="test.nometa.selenium"/>
601 </parallel>
602 </limit>
603 </target>
604
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +0000605 <target name="benchmark"
606 description="Run all benchmarks for this project.">
607
608 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
609 message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
610 <limit failonerror="true" hours="${benchmark.timeout}">
611 <!-- no-op unless gwt.hosts.web.remote is defined -->
612 <antcall target="benchmark.web.remote"/>
613 <!-- no-op unless gwt.hosts.web.selenium is defined -->
614 <antcall target="benchmark.web.selenium"/>
615 <antcall target="benchmark.web.htmlunit"/>
616 </limit>
617 </target>
618
619 <target name="benchmark.web.htmlunit"
620 depends="compile, compile.tests"
621 description="Run web-mode benchmarks with HtmlUnit."
622 unless="benchmark.web.htmlunit.disable">
623 <fileset id="benchmark.web.htmlunit.tests" dir="${javac.junit.out}"
624 includes="${gwt.benchmark.testcase.web.includes}"
625 excludes="${gwt.benchmark.testcase.web.excludes}" />
626 <gwt.junit test.name="benchmark.web.htmlunit"
627 test.args="${test.args} -testMethodTimeout ${benchmark.timeout} -out www -prod -standardsMode"
628 test.out="${junit.out}/web-htmlunit-benchmark"
629 test.cases="benchmark.web.htmlunit.tests" >
630 <extraclasspaths>
631 <path refid="test.extraclasspath" />
632 </extraclasspaths>
633 </gwt.junit>
634 </target>
635
636 <target name="benchmark.web.selenium"
637 depends="compile, compile.tests"
638 description="Run web benchmark using Selenium RC"
639 if="gwt.hosts.web.selenium"
640 unless="benchmark.web.selenium.disable">
641 <echo message="Performing web benchmarking using Selenium RC at ${gwt.hosts.web.selenium}" />
642 <property name="test.web.selenium.args" value="${test.args.web.selenium}" />
643 <fileset id="benchmark.web.selenium.tests" dir="${javac.junit.out}"
644 includes="${gwt.benchmark.testcase.web.includes}"
645 excludes="${gwt.benchmark.testcase.web.excludes}" />
646 <gwt.junit test.name="benchmark.web.selenium"
647 test.args='${test.web.selenium.args} -testMethodTimeout ${benchmark.timeout} -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}"'
648 test.out="${junit.out}/web-selenium-benchmark"
649 test.cases="benchmark.web.selenium.tests" >
650 <extraclasspaths>
651 <path refid="test.extraclasspath" />
652 </extraclasspaths>
653 </gwt.junit>
654 </target>
655
656 <target name="benchmark.web.remote"
657 depends="compile, compile.tests"
658 description="Run web benchmarks with remote browsers"
659 if="gwt.hosts.web.remote"
660 unless="benchmark.web.remote.disable">
661 <echo message="Performing web remote benchmarking at ${gwt.hosts.web.remote}" />
662 <property name="test.web.remote.args" value="${test.args.web.remote}" />
663 <fileset id="benchmark.web.remote.tests" dir="${javac.junit.out}"
664 includes="${gwt.benchmark.testcase.web.includes}"
665 excludes="${gwt.benchmark.testcase.web.excludes}" />
666 <gwt.junit test.name="benchmark.web.remote"
667 test.args="${test.web.remote.args} -testMethodTimeout ${benchmark.timeout} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote}"
668 test.out="${junit.out}/web-remote-benchmark"
669 test.cases="benchmark.web.remote.tests" >
670 <extraclasspaths>
671 <path refid="test.extraclasspath" />
672 </extraclasspaths>
673 </gwt.junit>
674 </target>
675
jat@google.com57b69402009-10-14 18:08:29 +0000676 <!--
677 Merges coverage data for the entire project
678 -->
679 <target name="emma.merge">
jlabanca@google.com81244562009-08-05 19:55:36 +0000680 <delete dir="${emma.merged.out}" />
681 <mkdir dir="${emma.merged.out}" />
682 <emma>
683 <merge outfile="${emma.merged.out}/merged.emma" >
684 <fileset dir="${junit.out}" >
685 <include name="**/*.emma" />
686 <exclude name="${emma.merged.out}/merged.emma" />
687 </fileset>
688 </merge>
689 </emma>
690 <emma>
691 <report sourcepath="${project.classpath.src}">
692 <fileset file="${javac.emma.out}/metadata.emma" />
693 <fileset file="${emma.merged.out}/merged.emma" />
694 <txt outfile="${emma.merged.out}/coverage.txt" />
695 <html outfile="${emma.merged.out}/coverage.html" />
696 <xml outfile="${emma.merged.out}/coverage.xml" />
697 </report>
698 </emma>
699 </target>
700
jat@google.combf79ddb2009-10-14 07:44:30 +0000701 <target name="clean"
702 description="Cleans this project's intermediate and output files">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000703 <delete dir="${project.build}" />
704 <delete file="${project.lib}" />
705 </target>
jat@google.com57b69402009-10-14 18:08:29 +0000706
707 <target name="presubmit" depends="test, checkstyle"
708 description="runs the gwt api checker, user checkstyle, and user tests">
spoon@google.comd0b00f82009-03-27 14:58:53 +0000709 <gwt.ant dir=".." target="apicheck-nobuild"/>
jgw@google.coma3509e22009-02-06 21:06:24 +0000710 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000711</project>