Author: boisvert
Date: Tue Jul 20 20:33:27 2010
New Revision: 965990
URL: http://svn.apache.org/viewvc?rev=965990&view=rev
Log:
Straggler documentation for test exclusion
Modified:
buildr/trunk/doc/testing.textile
Modified: buildr/trunk/doc/testing.textile
URL:
http://svn.apache.org/viewvc/buildr/trunk/doc/testing.textile?rev=965990&r1=965989&r2=965990&view=diff
==============================================================================
--- buildr/trunk/doc/testing.textile (original)
+++ buildr/trunk/doc/testing.textile Tue Jul 20 20:33:27 2010
@@ -98,6 +98,20 @@ Buildr forcefully runs all tests that ma
$ buildr test:*
{% endhighlight %}
+You can exclude tests by preceeding them with a minus sign ('-'):
+
+{% highlight sh %}
+$ buildr test:-Bar
+{% endhighlight %}
+
+The above would run all tests except those with a name containing @b...@.
Exclusions can be combined with inclusions:
+
+{% highlight sh %}
+$ buildr test:Foo,-Bar
+{% endhighlight %}
+
+Buildr would then run tests with names containing @Foo@ but not @b...@.
+
As you probably noticed, Buildr will stop your build at the first test that
fails. We think it's a good idea, except when it's not. If you're using a
continuous build system, you'll want a report of all the failed tests without
stopping at the first failure. To make that happen, set the environment
variable @test@ to "all", or the Buildr @options.test@ option to @:a...@. For
example:
{% highlight sh %}