[bvalid-codewatch] SF.net SVN: bvalid: [31] trunk
Status: Beta
Brought to you by:
cwilper
|
From: <cw...@us...> - 2006-05-05 07:15:50
|
Revision: 31 Author: cwilper Date: 2006-05-05 00:15:44 -0700 (Fri, 05 May 2006) ViewCVS: http://svn.sourceforge.net/bvalid/?rev=31&view=rev Log Message: ----------- small testing mods Modified Paths: -------------- trunk/build.xml trunk/src/java/net/sf/bvalid/catalog/DiskSchemaCatalog.java trunk/src/test/net/sf/bvalid/BValidPackageTestSuite.java Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2006-05-05 05:41:33 UTC (rev 30) +++ trunk/build.xml 2006-05-05 07:15:44 UTC (rev 31) @@ -111,7 +111,7 @@ </target> <target name="test" description="Run tests" depends="testclasses"> - <junit printsummary="yes" haltonfailure="yes" showoutput="true"> + <junit printsummary="no" haltonfailure="yes" showoutput="true" filtertrace="true"> <formatter type="plain" usefile="false"/> <classpath refid="test.path"/> <sysproperty key="propname" value="propvalue"/> @@ -131,6 +131,19 @@ </java> </target> + <target name="otest" description="Run tests interactively" depends="testclasses"> + <java classname="net.sf.bvalid.BValidPackageTestSuite" + fork="yes"> + <classpath refid="test.path"/> + <sysproperty key="org.apache.commons.logging.LogFactory" + value="org.apache.commons.logging.impl.Log4jFactory"/> + <sysproperty key="org.apache.commons.logging.Log" + value="org.apache.commons.logging.impl.Log4JLogger"/> + <sysproperty key="log4j.ignoreTCL" value="true"/> + <sysproperty key="text" value="true"/> + </java> + </target> + <target name="prep" description="prepare for a build"> <mkdir dir="build"/> Modified: trunk/src/java/net/sf/bvalid/catalog/DiskSchemaCatalog.java =================================================================== --- trunk/src/java/net/sf/bvalid/catalog/DiskSchemaCatalog.java 2006-05-05 05:41:33 UTC (rev 30) +++ trunk/src/java/net/sf/bvalid/catalog/DiskSchemaCatalog.java 2006-05-05 07:15:44 UTC (rev 31) @@ -141,8 +141,6 @@ if (!deleted) { if (file.exists()) { _LOG.warn("Cannot remove schema file: " + file.getPath()); - } else { - _LOG.warn("Schema file already deleted: " + file.getPath()); } } } Modified: trunk/src/test/net/sf/bvalid/BValidPackageTestSuite.java =================================================================== --- trunk/src/test/net/sf/bvalid/BValidPackageTestSuite.java 2006-05-05 05:41:33 UTC (rev 30) +++ trunk/src/test/net/sf/bvalid/BValidPackageTestSuite.java 2006-05-05 07:15:44 UTC (rev 31) @@ -24,6 +24,10 @@ } public static void main(String[] args) { - TestRunner.run(BValidPackageTestSuite.class); + if (System.getProperty("text") != null && System.getProperty("text").equals("true")) { + junit.textui.TestRunner.run(BValidPackageTestSuite.suite()); + } else { + TestRunner.run(BValidPackageTestSuite.class); + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |