You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2013/01/15 03:50:24 UTC

svn commit: r1433267 - in /buildr/trunk: CHANGELOG lib/buildr/java/tests.rb

Author: donaldp
Date: Tue Jan 15 02:50:23 2013
New Revision: 1433267

URL: http://svn.apache.org/viewvc?rev=1433267&view=rev
Log:
BUILDR-599 - Support the passing of arguments to testng test runner.

Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/lib/buildr/java/tests.rb

Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1433267&r1=1433266&r2=1433267&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Tue Jan 15 02:50:23 2013
@@ -1,4 +1,6 @@
 1.4.10 (Pending)
+* Added:  BUILDR-599 - Support the passing of arguments to testng
+          test runner.
 * Fixed:  Observer the per-project source version when generating
           IDEA module files.
 * Change: Sort the components in IDEA project files in the same

Modified: buildr/trunk/lib/buildr/java/tests.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/java/tests.rb?rev=1433267&r1=1433266&r2=1433267&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/java/tests.rb (original)
+++ buildr/trunk/lib/buildr/java/tests.rb Tue Jan 15 02:50:23 2013
@@ -293,6 +293,7 @@ module Buildr
   # Support the following options:
   # * :properties -- Hash of properties passed to the test suite.
   # * :java_args -- Arguments passed to the JVM.
+  # * :args -- Arguments passed to the TestNG command line runner.
   class TestNG < TestFramework::Java
 
     VERSION = '5.10'
@@ -334,6 +335,8 @@ module Buildr
       # run all tests in the same suite
       cmd_args << '-testclass' << tests
 
+      cmd_args += options[:args] if options[:args]
+
       cmd_options = { :properties=>options[:properties], :java_args=>options[:java_args],
         :classpath=>dependencies, :name => "TestNG in #{task.send(:project).name}" }