maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fgi...@apache.org
Subject svn commit: r438908 - /maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGDirectoryTestSuite.java
Date Thu, 31 Aug 2006 13:13:14 GMT
Author: fgiust
Date: Thu Aug 31 06:13:14 2006
New Revision: 438908

URL: http://svn.apache.org/viewvc?rev=438908&view=rev
Log:
workaround for SUREFIRE-49 - Surefire leaves null/$TestNGGroupName directories after mvn test
if test output dir is not set, TestNG creates a "null" directory, let it use the default temporary
dir instead

Modified:
    maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGDirectoryTestSuite.java

Modified: maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGDirectoryTestSuite.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGDirectoryTestSuite.java?rev=438908&r1=438907&r2=438908&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGDirectoryTestSuite.java
(original)
+++ maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGDirectoryTestSuite.java
Thu Aug 31 06:13:14 2006
@@ -200,6 +200,11 @@
             testNG.setSourcePath( testSourceDirectory );
         }
 
+        // workaround for SUREFIRE-49
+        // TestNG always creates an output directory, and if not set the name for the directory
is "null"
+        testNG.setOutputDirectory( System.getProperty( "java.io.tmpdir" ) );
+      
+
         testNG.runSuitesLocally();
     }
 }



Mime
View raw message