Author: assaf
Date: Mon Apr 21 17:31:28 2008
New Revision: 650330
URL: http://svn.apache.org/viewvc?rev=650330&view=rev
Log:
Basically, formatting edits to section dealing with BDD.
Modified:
incubator/buildr/trunk/doc/pages/testing.textile
Modified: incubator/buildr/trunk/doc/pages/testing.textile
URL:
http://svn.apache.org/viewvc/incubator/buildr/trunk/doc/pages/testing.textile?rev=650330&r1=650329&r2=650330&view=diff
==============================================================================
--- incubator/buildr/trunk/doc/pages/testing.textile (original)
+++ incubator/buildr/trunk/doc/pages/testing.textile Mon Apr 21 17:31:28 2008
@@ -391,26 +391,26 @@
RSpec documentation if want to see all the supported matchers, or want to write
your own.
-Next, let's talk about "customizing your environment and using
-profiles":settings_profiles.html
h2. Behaviour-Driven Development
-Buildr supports using Behaviour-Driven Development(BDD) frameworks for testing
-your java projects, which one to use, is just a matter of preference, mainly
-on what language/tools you feel confortable to use for testing.
-Buildr follows each framework naming conventions, searching for files under
-the @src/spec/{lang}@ directory.
+Buildr supports several Behaviour-Driven Development(BDD) frameworks for
+testing your projects. Buildr follows each framework naming conventions,
+searching for files under the @src/spec/{lang}@ directory.
+
h4. JBehave
-"JBehave":http://jbehave.org/ is a pure java BDD framework, stories and
-behaviour specifications are written in the java language.
+"JBehave":http://jbehave.org/ is a pure Java BDD framework, stories and
+behaviour specifications are written in the Java language.
To use JBehave in your project you can select it with @test.using :[EMAIL
PROTECTED]
This framework will search for the following patterns under your project:
- @src/spec/java/**/*Behaviour.java@
+
+{{{
+src/spec/java/**/*Behaviour.java
+}}}
Supports the following options:
@@ -418,21 +418,24 @@
| @:properties@ | Hash of system properties available to the test case. |
| @:java_args@ | Arguments passed as is to the JVM. |
+
h4. RSpec
-"RSpec":http://rspec.info/ is the de-facto BDD framework for ruby. It's the
+"RSpec":http://rspec.info/ is the de-facto BDD framework for ruby. It's the
framework used to test Buildr itself.
-Specifications are written in "Ruby":http://www.ruby-lang.org/en/ language,
-but are run by using "JRuby":http://jruby.codehaus.org/.
-That means you have access to all your Java classes and any Java or Ruby
-tool out there.
+Specifications are written in "Ruby":http://www.ruby-lang.org/en/ language, but
+are run by using "JRuby":http://jruby.codehaus.org/. That means you have
+access to all your Java classes and any Java or Ruby tool out there.
-To use this framework in your project you can select it with
[EMAIL PROTECTED] :[EMAIL PROTECTED]
+To use this framework in your project you can select it with @test.using
+:[EMAIL PROTECTED]
This framework will search for the following patterns under your project:
- @src/spec/ruby/**/*_spec.rb@
+
+{{{
+src/spec/ruby/**/*_spec.rb
+}}}
Supports the following options:
@@ -443,23 +446,29 @@
h4. EasyB
-"EasyB":http://www.easyb.org/ is a BDD framework using
+"EasyB":http://www.easyb.org/ is a BDD framework using
"Groovy":http://groovy.codehaus.org/.
-Specifications are written in the Groovy language, of course you get
-seamless java integration as with all things groovy.
+Specifications are written in the Groovy language, of course you get seamless
+Java integration as with all things groovy.
-To use this framework in your project you can select it with
[EMAIL PROTECTED] :[EMAIL PROTECTED]
+To use this framework in your project you can select it with @test.using
+:[EMAIL PROTECTED]
This framework will search for the following patterns under your project:
- @src/spec/groovy/**/*Behavior.groovy@
- @src/spec/groovy/**/*Story.groovy@
+
+{{{
+src/spec/groovy/**/*Behavior.groovy
+src/spec/groovy/**/*Story.groovy
+}}}
Supports the following options:
|_. Option |_. Value |
| @:properties@ | Hash of system properties available to the test case. |
| @:java_args@ | Arguments passed as is to the JVM. |
-| @:format@ | Report format, either :txt or :xml |
+| @:format@ | Report format, either @:txt@ or @:xml@ |
+
+Next, let's talk about "customizing your environment and using
+profiles":settings_profiles.html