velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r1053539 - in /velocity/engine/trunk/velocity-engine-core: pom.xml src/test/java/org/apache/velocity/test/BaseTestCase.java
Date Wed, 29 Dec 2010 06:08:17 GMT
Author: nbubna
Date: Wed Dec 29 06:08:17 2010
New Revision: 1053539

URL: http://svn.apache.org/viewvc?rev=1053539&view=rev
Log:
allow one test to be run at a time, with DEBUG on

Modified:
    velocity/engine/trunk/velocity-engine-core/pom.xml
    velocity/engine/trunk/velocity-engine-core/src/test/java/org/apache/velocity/test/BaseTestCase.java

Modified: velocity/engine/trunk/velocity-engine-core/pom.xml
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/pom.xml?rev=1053539&r1=1053538&r2=1053539&view=diff
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/pom.xml (original)
+++ velocity/engine/trunk/velocity-engine-core/pom.xml Wed Dec 29 06:08:17 2010
@@ -70,6 +70,10 @@
                     <skip>true</skip>
                     <systemProperties>
                         <property>
+                            <name>test</name>
+                            <value>${test}</value>
+                        </property>
+                        <property>
                             <name>test.compare.dir</name>
                             <value>${project.build.testOutputDirectory}</value>
                         </property>

Modified: velocity/engine/trunk/velocity-engine-core/src/test/java/org/apache/velocity/test/BaseTestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/test/java/org/apache/velocity/test/BaseTestCase.java?rev=1053539&r1=1053538&r2=1053539&view=diff
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/test/java/org/apache/velocity/test/BaseTestCase.java
(original)
+++ velocity/engine/trunk/velocity-engine-core/src/test/java/org/apache/velocity/test/BaseTestCase.java
Wed Dec 29 06:08:17 2010
@@ -55,10 +55,10 @@ public abstract class BaseTestCase exten
 
         // if we're just running one case, then have DEBUG
         // automatically set to true
-        String testcase = System.getProperty("testcase");
-        if (testcase != null)
+        String test = System.getProperty("test");
+        if (test != null)
         {
-            DEBUG = testcase.equals(getClass().getName());
+            DEBUG = test.equals(getClass().getSimpleName());
         }
     }
 



Mime
View raw message