Project

General

Profile

« Previous | Next » 

Revision 7011

restore "test" target that I nuked when adding runoneclass. (thanks, Chris)

View differences:

build.xml
1097 1097
			</classpath>
1098 1098
		</java>
1099 1099
	</target>
1100
	
1101
	<target name="test" depends="testprep"
1102
		description="Uses the ant junit task to run all JUnit tests">
1100 1103

  
1104
		<!-- use the ant "junit" task to run JUnit tests. -->
1105
		<junit printsummary="yes" haltonfailure="no" fork="yes"
1106
			haltonerror="no">
1107
			<jvmarg value="-Dfile.encoding=UTF-8"/>
1108
			<classpath>
1109
				<path refid="test.classpath" />
1110
				<fileset dir="${build.dir}">
1111
					<include name="${name}.jar" />
1112
					<include name="${name}-client.jar" />
1113
					<include name="harvester.jar" />
1114
					<include name="${name}-junittests.jar" />
1115
				</fileset>
1116
			</classpath>
1117

  
1118
			<formatter type="plain" />
1119

  
1120
			<batchtest fork="yes" todir="${build.dir}">
1121
				<fileset dir="${build.tests}">
1122
					<include name="**/*.class" />
1123
					<exclude name="**/MCTestCase.class" />
1124
					<exclude name="**/ClientViewHelperTest.class" />
1125
					<!-- these are not test cases -->
1126
					<exclude name="**/MockCNode.class" />
1127
					<exclude name="**/D1NodeServiceTest.class" />
1128
				</fileset>
1129
			</batchtest>
1130
		</junit>
1131
	</target>
1132

  
1101 1133
	<target name="runonetest" depends="testprep"
1102 1134
		description="Uses the ant junit task to run a single JUnit test, defined by the ${testtorun} property">
1103 1135

  

Also available in: Unified diff