aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
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" />