Added timeout to ant junit test

This commit is contained in:
Ziver Koc 2016-07-12 17:22:04 +02:00
parent 739b923e1e
commit 43dc9a11cb
2 changed files with 4 additions and 4 deletions

2
LICENSE.txt Normal file → Executable file
View file

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2015 Ziver Koc
Copyright (c) 2016 Ziver Koc
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -39,13 +39,13 @@
<target name="test" depends="build-test">
<mkdir dir="${reportsDir}" />
<junit printsummary="yes" haltonfailure="false" fork="true">
<junit printsummary="yes" haltonfailure="false" fork="true" timeout="3000000">
<classpath refid="classpath.test" />
<formatter type="plain" usefile="false" /> <!-- to screen -->
<formatter type="xml" /> <!-- to file -->
<batchtest todir="${reportsDir}" skipNonTests="true">
<fileset dir="${buildTestDir}" includes="**/*Test*.class" />
<fileset dir="${buildTestDir}" includes="**/*.class" />
</batchtest>
</junit>
</target>
@ -70,7 +70,7 @@
<classpath refid="classpath.build" />
<include name="**/*.java" />
</javac>
<copy todir="${buildDir}">
<copy todir="${buildDir}"> <!-- Copy resource files -->
<fileset dir="${srcDir}"
excludes="**/*.java" />
</copy>