You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by to...@apache.org on 2010/04/03 23:14:14 UTC
svn commit: r930582 - /buildr/trunk/spec/core/test_spec.rb
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 } }