Class Buildr::JtestR
In: lib/buildr/java/bdd.rb  (CVS)
Parent: TestFramework::JavaBDD

<a href="JtestRjtestr.codehaus.org/">JtestR> is a framework for BDD and TDD using JRuby and ruby tools. To test your project with JtestR use:

  test.using :jtestr

Support the following options:

  • :config — path to JtestR config file. defaults to @spec/ruby/jtestr_config.rb@
  • :gems — A hash of gems to install before running the tests.
                   The keys of this hash are the gem name, the value must be the required version.
    
  • :requires — A list of ruby files to require before running the specs
                   Mainly used if an rspec format needs to require some file.
    
  • :format — A list of valid Rspec —format option values. (defaults to ‘progress’)
  • :output — File path to output dump. @false@ to supress output
  • :fork — Create a new JavaVM to run the tests on
  • :properties — Hash of properties passed to the test suite.
  • :java_args — Arguments passed to the JVM.

Methods

Included Modules

TestFramework::JRubyBased

Constants

VERSION = '0.6'
STORY_PATTERN = /_(steps|story)\.rb$/   pattern for rspec stories
TESTUNIT_PATTERN = /(_test|Test)\.rb$|(tc|ts)[^\\\/]+\.rb$/   pattern for test_unit files
EXPECT_PATTERN = /_expect\.rb$/   pattern for test files using expectations.rubyforge.org/
TESTS_PATTERN = [STORY_PATTERN, TESTUNIT_PATTERN, EXPECT_PATTERN] + RSpec::TESTS_PATTERN

Public Class methods

Public Instance methods

[Validate]