Guest User

Untitled

a guest
Aug 14th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Ant to spin up background process for junit tests
  2. <java classpath="${jar.dir}/foo.jar" classname="foo.Server" fork="true" failonerror="true">
  3. <arg value="7777"/>
  4. </java>
  5.  
  6. spawn does not allow attributes related to input, output, error, result
  7. spawn also does not allow timeout
  8. finally, spawn is not compatible with a nested I/O <redirector>
  9.  
  10. <target name="junit" depends="build-jar">
  11. <mkdir dir="${report.dir}"/>
  12.  
  13. <junit printsummary="yes">
  14. <classpath>
  15. <path refid="junitcp"/>
  16. </classpath>
  17. <formatter type="brief"/>
  18. <batchtest fork="yes" todir="${report.dir}">
  19. <fileset dir="${homeDir}" includes="foo/*Test.java"/>
  20. </batchtest>
  21. </junit>
  22. </target>
Add Comment
Please, Sign In to add comment