aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-09-08 15:14:07 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-09-08 15:14:07 +0200
commit42ed180aef0de55ab94760e6daf24b0dbd446054 (patch)
tree5b1ec4ce5ac5ea3ec33848d61b8c85750e337f73 /build.xml
parenta24ea15f02cdb3c7bfeb90a0e0fde850b2853b6b (diff)
downloaddokka-42ed180aef0de55ab94760e6daf24b0dbd446054.tar.gz
dokka-42ed180aef0de55ab94760e6daf24b0dbd446054.tar.bz2
dokka-42ed180aef0de55ab94760e6daf24b0dbd446054.zip
Ant task to run tests
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 41f32d70..049e6da2 100644
--- a/build.xml
+++ b/build.xml
@@ -38,6 +38,28 @@
</jar>
</target>
+ <target name="test" depends="build">
+ <mkdir dir="out/test"/>
+
+ <kotlinc src="test/src" output="out/test">
+ <classpath>
+ <fileset dir="lib" includes="*.jar"/>
+ <fileset dir="out" includes="dokka.jar" />
+ </classpath>
+ </kotlinc>
+
+ <junit fork="true">
+ <classpath>
+ <fileset dir="lib" includes="*.jar"/>
+ <fileset dir="out" includes="dokka.jar" />
+ <pathelement path="out/test"/>
+ </classpath>
+ <batchtest>
+ <fileset dir="out/test"/>
+ </batchtest>
+ </junit>
+ </target>
+
<target name="fatjar" depends="build">
<exec executable="${basedir}/dokka-fatjar/gradlew" dir="dokka-fatjar" osfamily="unix" failonerror="true">
<arg value="assemble" />