Author: sebb
Date: Thu Mar 4 18:55:16 2010
New Revision: 919127
URL: http://svn.apache.org/viewvc?rev=919127&view=rev
Log:
Fix up so unit tests work OK
Allow build.xml to run a single test by defining test.entry
Modified:
commons/proper/codec/trunk/build.xml
commons/proper/codec/trunk/default.properties
Modified: commons/proper/codec/trunk/build.xml
URL:
http://svn.apache.org/viewvc/commons/proper/codec/trunk/build.xml?rev=919127&r1=919126&r2=919127&view=diff
==============================================================================
--- commons/proper/codec/trunk/build.xml (original)
+++ commons/proper/codec/trunk/build.xml Thu Mar 4 18:55:16 2010
@@ -198,8 +198,10 @@
<record name="${build.home}/test-output.txt" append="no"
action="start"/>
<junit printsummary="yes" haltonfailure="yes">
<classpath refid="test.classpath"/>
- <formatter type="plain"/>
- <batchtest fork="yes" todir="${build.home}/test-reports">
+ <formatter type="plain" usefile="true" />
+ <!-- If test.entry is defined, run a single test, otherwise run
all valid tests -->
+ <test name="${test.entry}" todir="${build.home}/test-reports"
if="test.entry"/>
+ <batchtest fork="yes" todir="${build.home}/test-reports"
unless="test.entry">
<fileset dir="${test.home}">
<include name="**/*Test.java"/>
<exclude name="**/*AbstractTest.java"/>
Modified: commons/proper/codec/trunk/default.properties
URL:
http://svn.apache.org/viewvc/commons/proper/codec/trunk/default.properties?rev=919127&r1=919126&r2=919127&view=diff
==============================================================================
--- commons/proper/codec/trunk/default.properties (original)
+++ commons/proper/codec/trunk/default.properties Thu Mar 4 18:55:16 2010
@@ -17,8 +17,12 @@
# $Id$
+# Repository base path
+repository=${user.home}/.m2/repository
+
# The pathname of the "junit.jar" JAR file
-junit.jar = ${junit.home}/junit.jar
+junit.home=${repository}/junit/junit/3.8.2
+junit.jar = ${junit.home}/junit-3.8.2.jar
# The name of this component
component.name = commons-codec
@@ -71,6 +75,3 @@
# The test runner to execute
test.runner = junit.textui.TestRunner
-
-# Root test class to execute
-test.entry = org.apache.commons.codec.TestAll