diff options
author | Artur Signell <artur@vaadin.com> | 2013-02-26 11:07:42 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-03-01 15:54:57 +0200 |
commit | e6d506494c8ead64e72db63d951be9a79f6bb482 (patch) | |
tree | 87ca3e4c85948040580256363559d5039457512c /common.xml | |
parent | c965ff2475f4047ae5efa2b2917089f8b97e95d9 (diff) | |
download | vaadin-framework-e6d506494c8ead64e72db63d951be9a79f6bb482.tar.gz vaadin-framework-e6d506494c8ead64e72db63d951be9a79f6bb482.zip |
Renamed "tests" target to "test" and added "test-all" (#9998)
The "test" target runs all tests which do not require additional servers or setup. Can be run immediately after cloning the project.
The "test-all" target runs also integration tests and UI tests which require access to servers or additional setup.
Change-Id: I2f5371dc5be805ba12766c8187a2b58fbc7f7db4
Diffstat (limited to 'common.xml')
-rw-r--r-- | common.xml | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/common.xml b/common.xml index 6e88bf6113..f575c3606d 100644 --- a/common.xml +++ b/common.xml @@ -293,25 +293,25 @@ <mkdir dir="${classes}" /> </target> - <target name="tests.run" depends="tests.compile"> + <target name="test.run" depends="test.compile"> <fail unless="module.name" message="No module name given" /> <property name="result.dir" location="result" /> <property name="classes" location="${result.dir}/classes" /> - <property name="tests.src" location="${result.dir}/../tests/src" /> - <property name="tests.classes" location="${result.dir}/tests/classes" /> + <property name="test.src" location="${result.dir}/../tests/src" /> + <property name="test.classes" location="${result.dir}/tests/classes" /> <junit printsummary="withOutAndErr" fork="yes"> <formatter usefile="false" type="plain" /> <jvmarg value="-ea" /> - <classpath location="${tests.classes}" /> + <classpath location="${test.classes}" /> <classpath location="${classes}" /> <classpath refid="classpath.compile.custom" /> - <classpath refid="classpath.tests.dependencies" /> + <classpath refid="classpath.test.dependencies" /> <batchtest fork="yes"> - <fileset dir="${tests.src}"> + <fileset dir="${test.src}"> <exclude name="**/Abstract*" /> <exclude name="com/vaadin/tests/data/bean/*" /> <exclude name="com/vaadin/tests/util/*" /> @@ -323,26 +323,26 @@ </junit> </target> - <target name="tests.compile" description="Compiles tests" depends="compile, dependencies.tests"> + <target name="test.compile" description="Compiles tests" depends="compile, dependencies.test"> <fail unless="module.name" message="No module name given" /> <property name="result.dir" location="result" /> <property name="base.dir" location="${result.dir}/.." /> - <property name="tests.src" location="${base.dir}/tests/src" /> - <property name="tests.resources" location="${base.dir}/tests/resources" /> - <property name="tests.classes" location="${result.dir}/tests/classes" /> + <property name="test.src" location="${base.dir}/tests/src" /> + <property name="test.resources" location="${base.dir}/tests/resources" /> + <property name="test.classes" location="${result.dir}/tests/classes" /> <property name="classes" location="${result.dir}/classes" /> - <mkdir dir="${tests.classes}" /> + <mkdir dir="${test.classes}" /> - <javac srcdir="${tests.src}" destdir="${tests.classes}" source="${vaadin.java.version}" target="${vaadin.java.version}" debug="true" encoding="UTF-8" includeantruntime="false"> - <classpath refid="classpath.tests.dependencies" /> + <javac srcdir="${test.src}" destdir="${test.classes}" source="${vaadin.java.version}" target="${vaadin.java.version}" debug="true" encoding="UTF-8" includeantruntime="false"> + <classpath refid="classpath.test.dependencies" /> <classpath location="${classes}" /> - <classpath refid="classpath.tests.custom" /> + <classpath refid="classpath.test.custom" /> </javac> <!-- Copy resources --> - <copy todir="${tests.classes}" failonerror="false"> - <fileset dir="${tests.resources}" /> + <copy todir="${test.classes}" failonerror="false"> + <fileset dir="${test.resources}" /> </copy> </target> @@ -352,9 +352,9 @@ <ivy:cachepath pathid="classpath.compile.dependencies" conf="${conf}" /> </target> - <target name="dependencies.tests" description="Resolves dependencies needed by tests"> - <ivy:resolve resolveid="common" conf="tests" /> - <ivy:cachepath pathid="classpath.tests.dependencies" conf="tests" /> + <target name="dependencies.test" description="Resolves dependencies needed by test"> + <ivy:resolve resolveid="common" conf="test" /> + <ivy:cachepath pathid="classpath.test.dependencies" conf="test" /> </target> <target name="clean"> |