Testing Java with Ruby

Print
Home

JtestR

JtestR is a tool that will make it easier to test Java code with state of the art Ruby tools. The main project is a collection of Ruby libraries bundled together with JRuby integration so that running tests is totally painless to set up. The project also includes a background server so that the startup cost of JRuby can be avoided. Examples of Ruby libraries included are RSpec, dust, Test/Unit, mocha and ActiveSupport.

The vision of the project is to be the testing tool of choice for Java projects, offering nice Ant, Maven and buildr integration. It will also support integration testing with common Ruby libraries like Ruby/LDAP and ActiveRecord, while still providing access to Java libraries and helpers.

Features

News

JtestR 0.6 Released

JtestR allows you to test your Java code with Ruby frameworks.

Homepage: http://jtestr.codehaus.org

Download: http://dist.codehaus.org/jtestr

JtestR 0.6 is the current release of the JtestR testing tool. JtestR integrates JRuby with several Ruby frameworks to allow painless testing of Java code, using RSpec, Test/Unit, Expectations, dust and Mocha.

Features:

  • Integrates with Ant, Maven and JUnit
  • Includes JRuby 1.5+, Test/Unit, RSpec, Expectations, dust, Mocha and ActiveSupport
  • Customizes Mocha so that mocking of any Java class is possible
  • Background testing server for quick startup of tests
  • Automatically runs your JUnit and TestNG codebase as part of the build

Getting started: http://jtestr.codehaus.org/Getting+Started

New in the 0.6 release is upgrade of JRuby to version 1.5+, upgrade of ActiveSupport to 2.3.9 and RSpec to 1.3.0.

Ola Bini - ola.bini@gmail.com

JtestR 0.5 Released

JtestR allows you to test your Java code with Ruby frameworks.

Homepage: http://jtestr.codehaus.org

Download: http://dist.codehaus.org/jtestr

JtestR 0.5 is the current release of the JtestR testing tool. JtestR integrates JRuby with several Ruby frameworks to allow painless testing of Java code, using RSpec, Test/Unit, Expectations, dust and Mocha.

Features:

  • Integrates with Ant, Maven and JUnit
  • Includes JRuby 1.4, Test/Unit, RSpec, Expectations, dust, Mocha and ActiveSupport
  • Customizes Mocha so that mocking of any Java class is possible
  • Background testing server for quick startup of tests
  • Automatically runs your JUnit and TestNG codebase as part of the build

Getting started: http://jtestr.codehaus.org/Getting+Started

New in the 0.4 release is upgrade of JRuby to version 1.4, upgrade of ActiveSupport to 2.3.4, Mocha to 0.9.8 and RSpec to 1.2.9.

Ola Bini - ola.bini@gmail.com

JtestR 0.4 Released

JtestR allows you to test your Java code with Ruby frameworks.

Homepage: http://jtestr.codehaus.org

Download: http://dist.codehaus.org/jtestr

JtestR 0.4 is the current release of the JtestR testing tool. JtestR integrates JRuby with several Ruby frameworks to allow painless testing of Java code, using RSpec, Test/Unit, Expectations, dust and Mocha.

Features:

  • Integrates with Ant, Maven and JUnit
  • Includes JRuby 1.2, Test/Unit, RSpec, Expectations, dust, Mocha and ActiveSupport
  • Customizes Mocha so that mocking of any Java class is possible
  • Background testing server for quick startup of tests
  • Automatically runs your JUnit and TestNG codebase as part of the build

Getting started: http://jtestr.codehaus.org/Getting+Started

New in the 0.4 release is upgrade of JRuby to version 1.2, upgrade of ActiveSupport to 2.3.2, Mocha to 0.9.5 and RSpec to 1.2.6.

Seeing as the new RSpec version no longer supports the story runner, support for this have been removed from JtestR. Cucumber support will arrive in a future version.

JtestR 0.3.1 Released

JtestR allows you to test your Java code with Ruby frameworks.

Homepage: http://jtestr.codehaus.org

Download: http://dist.codehaus.org/jtestr

JtestR 0.3.1 is the current release of the JtestR testing tool. JtestR integrates JRuby with several Ruby frameworks to allow painless testing of Java code, using RSpec, Test/Unit, Expectations, dust and Mocha.

Features:

  • Integrates with Ant, Maven and JUnit
  • Includes JRuby 1.1, Test/Unit, RSpec, Expectations, dust, Mocha and ActiveSupport
  • Customizes Mocha so that mocking of any Java class is possible
  • Background testing server for quick startup of tests
  • Automatically runs your JUnit and TestNG codebase as part of the build

Getting started: http://jtestr.codehaus.org/Getting+Started

New in the 0.3.1 release is upgrade of JRuby to revision r7479 which includes several new Java Integration features, upgrading of ActiveSupport to 2.1.0, fixing a severe memory leak in the background server and some minor usability features.

New and fixed in this release:

JTESTR-50 Difference in functionality when stubbing a method on a Java class vs a Ruby class using mocha

JTESTR-51 Mocking of classes lacking default constructors results in a NameError

JTESTR-53 Push the JtestR JRuby builds to maven repos

JTESTR-56 Upgrade ActiveSupport

JTESTR-57 Make it possible to use local versions of libraries.

JTESTR-59 No output when no tests found.

JTESTR-60 OutOfMemoryError

JTESTR-61 Documentation improvments - ant test-server

JTESTR-62 Having the jtestr.jar in the base directory doesn't work

JTESTR-63 Update JRuby version

JtestR 0.3 Released

JtestR allows you to test your Java code with Ruby frameworks.

Homepage: http://jtestr.codehaus.org

Download: http://dist.codehaus.org/jtestr

JtestR 0.3 is the current release of the JtestR testing tool. JtestR integrates JRuby with several Ruby frameworks to allow painless testing of Java code, using RSpec, Test/Unit, Expectations, dust and Mocha.

Features:

  • Integrates with Ant, Maven and JUnit
  • Includes JRuby 1.1, Test/Unit, RSpec, Expectations, dust, Mocha and ActiveSupport
  • Customizes Mocha so that mocking of any Java class is possible
  • Background testing server for quick startup of tests
  • Automatically runs your JUnit and TestNG codebase as part of the build

Getting started: http://jtestr.codehaus.org/Getting+Started

The 0.3 release has focused on stabilizing Maven support, and adding new capabilities for JUnit integration.

New and fixed in this release:

JTESTR-47 Maven with subprojects should work intuitively

JTESTR-42 Maven dependencies should be automatically picked up by the test run

JTESTR-41 Driver jtestr from junit

JTESTR-37 Can't expect a specific Java exception correctly

JTESTR-36 IDE integration, possibility to run single tests

JTESTR-35 Support XML output of test reports

Powered by Atlassian Confluence