buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toulm...@apache.org
Subject svn commit: r930582 - /buildr/trunk/spec/core/test_spec.rb
Date Sat, 03 Apr 2010 21:14:14 GMT
Author: toulmean
Date: Sat Apr  3 21:14:12 2010
New Revision: 930582

URL: http://svn.apache.org/viewvc?rev=930582&view=rev
Log:
more specs to try to reproduce BUILDR-413, no luck so far

Modified:
    buildr/trunk/spec/core/test_spec.rb

Modified: buildr/trunk/spec/core/test_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/core/test_spec.rb?rev=930582&r1=930581&r2=930582&view=diff
==============================================================================
--- buildr/trunk/spec/core/test_spec.rb (original)
+++ buildr/trunk/spec/core/test_spec.rb Sat Apr  3 21:14:12 2010
@@ -757,6 +757,28 @@ describe Rake::Task, 'test' do
     options.test = :all
     lambda { task('test').invoke rescue nil }.should run_tasks('foo:test', 'bar:test')
   end
+  
+  it 'should ignore failure in subprojects if options.test is :all' do
+    define('foo') {
+      define('p1') { test { fail } } 
+      define('p2') { test {  } } 
+      define('p3') { test { fail } } 
+    }
+    define('bar') { test { fail } } 
+    options.test = :all
+    lambda { task('test').invoke rescue nil }.should run_tasks('foo:p1:test', 'foo:p2:test',
'foo:p3:test', 'bar:test')
+  end
+  
+  it 'should ignore failure in subprojects if environment variable test is \'all\'' do
+    define('foo') {
+      define('p1') { test { fail } } 
+      define('p2') { test {  } } 
+      define('p3') { test { fail } } 
+    }
+    define('bar') { test { fail } } 
+    ENV['test'] = 'all'
+    lambda { task('test').invoke rescue nil }.should run_tasks('foo:p1:test', 'foo:p2:test',
'foo:p3:test', 'bar:test')
+  end
 
   it 'should ignore failure if options.test is :all and target is build task ' do
     define('foo') { test { fail } }



Mime
View raw message