There are actually 4 core test suites:
org.jruby.test.MainTestSuite, a suite of pure-java tests;
org.jruby.test.TestUnitTestSuite, which runs a suite of files named one-per-line in
test/*_indexfiles). Note: some are commented out.
Rubyspecs, a recent point-in-time copy of RubySpec project. The specs are written in
rspecformat and aim to test conformance of JRuby against the Ruby specification.
d) MRI's own tests, synced periodically. The tests are run with
rake test:mri19and known failing tests are marked as such in excludes files under
If you'd like to contribute new tests, we'd prefer you write them via the
rubyspecsproject. If the tests are very specific to JRuby (like Java Integration) we prefer writing
rspecs under our
We're also interested in running tests for other ruby software suites; if you want to grab your favorite ruby software and run its own tests under JRuby and report to the mailing list at
firstname.lastname@example.org, that would be great.
Please file any and all patches in Github issues
Using ant, type
The three test suites should be run in order.
To run rubyspecs, type
A slightly shorter run we run frequently is:
The rubyspecs will be fetched over the net, and then executed.
To run an individual test:
ant install-dev-gemswhich will install
ant compile-testto compile the java fixtures (you don't need to wait for the tests to finish) then test as normal with