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 2010/03/26 18:00:41 UTC

svn commit: r927968 - /buildr/trunk/doc/testing.textile

Author: boisvert
Date: Fri Mar 26 17:00:41 2010
New Revision: 927968

URL: http://svn.apache.org/viewvc?rev=927968&view=rev
Log:
Fix buggy documentation (Peter Schröder)

Modified:
    buildr/trunk/doc/testing.textile

Modified: buildr/trunk/doc/testing.textile
URL: http://svn.apache.org/viewvc/buildr/trunk/doc/testing.textile?rev=927968&r1=927967&r2=927968&view=diff
==============================================================================
--- buildr/trunk/doc/testing.textile (original)
+++ buildr/trunk/doc/testing.textile Fri Mar 26 17:00:41 2010
@@ -44,15 +44,15 @@ When tests fail, Buildr fails the @test@
 test.using :fail_on_failure=>false
 {% endhighlight %}
 
-Besides giving you a free pass to ignore failures, you can use it for other causes, for example, to be somewhat forgiving:
+Besides giving you a free pass to ignore failures, you can use it for other causes, for example, as a gentle reminder:
 
 {% highlight ruby %}
 test do
-  fail 'More than 3 tests failed!' if test.failed_tests.size > 3
+  warn "Did you forget something?" if test.tests.nil? || test.tests.empty?
 end
 {% endhighlight %}
 
-The @failed_tests@ collection holds the names of all classes with failed tests. And there's @classes@, which holds the names of all test classes.  Ruby arithmetic allows you to get the name of all passed test classes with a simple @test.classes – test.failed_tests@.  We'll let you imagine creative use for these two.
+The @tests@ collection holds the names of all classes with tests, if any. And there's @classes@, which holds the names of all test classes.  We'll let you imagine creative use for these two.
 
 
 h2(#running). Running Tests