You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by bo...@apache.org on 2009/11/17 20:45:48 UTC
svn commit: r881459 - /buildr/trunk/spec/core/test_spec.rb
Author: boisvert
Date: Tue Nov 17 19:45:48 2009
New Revision: 881459
URL: http://svn.apache.org/viewvc?rev=881459&view=rev
Log:
Add spec covering test=all with build target
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=881459&r1=881458&r2=881459&view=diff
==============================================================================
--- buildr/trunk/spec/core/test_spec.rb (original)
+++ buildr/trunk/spec/core/test_spec.rb Tue Nov 17 19:45:48 2009
@@ -728,6 +728,13 @@
lambda { task('test').invoke rescue nil }.should run_tasks('foo:test', 'bar:test')
end
+ it 'should ignore failure if options.test is :all and target is build task ' do
+ define('foo') { test { fail } }
+ define('bar') { test { fail } }
+ options.test = :all
+ lambda { task('build').invoke rescue nil }.should run_tasks('foo:test', 'bar:test')
+ end
+
it 'should ignore failure if environment variable test is \'all\'' do
define('foo') { test { fail } }
define('bar') { test { fail } }