Author: vborja
Date: Tue Sep 23 12:12:49 2008
New Revision: 698293
URL: http://svn.apache.org/viewvc?rev=698293&view=rev
Log:
More documentation changes for jtestr
Modified:
incubator/buildr/trunk/doc/pages/languages.textile
Modified: incubator/buildr/trunk/doc/pages/languages.textile
URL:
http://svn.apache.org/viewvc/incubator/buildr/trunk/doc/pages/languages.textile?rev=698293&r1=698292&r2=698293&view=diff
==============================================================================
--- incubator/buildr/trunk/doc/pages/languages.textile (original)
+++ incubator/buildr/trunk/doc/pages/languages.textile Tue Sep 23 12:12:49 2008
@@ -330,12 +330,18 @@
h3. Testing with Ruby
+Buildr provides integration with some ruby testing frameworks, allowing you to
test your Java code with state of the art tools.
+
+Testing code is written in "Ruby":http://www.ruby-lang.org/en/ language, and
is 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.
+
+Because of the use of JRuby, you will notice that running ruby tests is faster
when running Buildr on JRuby, as in this case
+there's no need to run another JVM.
+
h4. RSpec
"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.
-
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:
@@ -374,6 +380,8 @@
Supports the following options:
|_. Option |_. Value |
-| @:config@ | The JtestR config file to be loaded after being configured by
Buildr. |
+| @:config@ | The JtestR config file to be loaded after being configured
by Buildr. Defaults to @src/spec/ruby/[EMAIL PROTECTED] |
| @:output@ | A file path where to store JtestR output. @false@ to
suppress output, @true@ to use standard output. |
+| @:properties@ | Hash of system properties available to the test case. |
+| @:java_args@ | Arguments passed as is to the JVM. |