JUnit Example Build Script

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." name="Doqua Check">
	<!-- ------------------------------------------------------
	set your library path here
	you have to have the following JARs in that directory
	junit.jar can be loaded at: http://junit.org
	jtidy.jar can be loaded at: http://jtidy.sourceforge.net
	doqua.jar can be loaded at: http://www.inetsoftware.de/other-products/doqua/junit-integration
	Attention: you will have to rename the
	downloaded com.inet.doqua_X.X.X.jar to com.inet.doqua.jar
	------------------------------------------------------- -->
	<property name="lib" value="" />
	<!-- the following JARs are needed to run Doqua as JUnit test -->
	<path id="Doqua.classpath">
		<pathelement location="${lib}/junit.jar" />
		<pathelement location="${lib}/jtidy.jar" />
		<pathelement location="${lib}/com.inet.doqua.jar" />
	<junit haltonerror="no" haltonfailure="no" maxmemory="512m" fork="true">
		<classpath refid="Doqua.classpath" />
		<formatter type="xml"/>
		<jvmarg value="-Xmx512m"/>
		<!-- set the Doqua systemfiles -->
		<jvmarg value="-Dtest.globalfile=.doqua/global.xml" />
		<jvmarg value="-Dtest.projectfile=.doqua/project.xml" />
		<!-- run the test -->
		<test name="com.inet.doqua.DokuTool" outfile="DoquaResults">

© Copyright 1996 - 2017, i-net software; All Rights Reserved.