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

Last changed Apr 17, 2008 08:16 by Ola Bini

The JtestR team is proud to announce that version 0.2 has now been released. The new release brings several new features, including Expectations support, RSpec Stories and TestNG integration. Lots of bugs has also been fixed.

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

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

New and fixed in this release:

  • JTESTR-10 It should be possible to run TestNG tests
  • JTESTR-12 Buildr support
  • JTESTR-13 CC.rb should be able to run JtestR tests
  • JTESTR-17 Tests should be groupable and runnable per groups
  • JTESTR-21 Support RSpec stories
  • JTESTR-28 JtestR should include expectations
  • JTESTR-30 code coverage support
  • JTESTR-31 Autoloading of Java constants
  • JTESTR-32 Can't load IA 32-bit .so on a IA 32-bit platform
  • JTESTR-33 JtestR should use latest version of JRuby
  • JTESTR-34 Errors when project is in path with spaces on Windows XP
  • JTESTR-37 Can't expect a specific Java exception correctly
  • JTESTR-38 Problem with mocking Java classes
  • JTESTR-39 RSpec story runner seems to require rubygems
  • JTESTR-40 Package missing or.jruby.exceptions.RaiseException
  • JTESTR-43 It should be possible to get the generated mock class without instantiation
  • JTESTR-44 New output files start with a whitespace
  • JTESTR-45 RSpec raise_error and Test/Unit assert_raise and assert_nothing_raised handled JRuby NativeException stuff correctly.
Posted at 17 Apr @ 8:12 AM by Ola Bini | 0 comments

Quickly after the initial release, 0.1.1 of JtestR has been released with some important bug fixes and one new feature:

  • [Bug] The classpath configuration sometimes made JtestR fail with type conversion errors
  • [Bug] The BackgroundServer would die if you tried to run on a code base with only Test::Unit or RSpec tests (JTESTR-29)
  • [Bug] Setting different outputlevels through the Ant configuration always failed with a message that the specified value was not allowed.
  • [Feature] Added an ignore-option to the configuration, so that Ruby files in the test directory can be ignored. See Getting Started for more info.

The release can be downloaded from http://dist.codehaus.org/jtestr/jtestr-0.1.1.jar

Posted at 01 Jan @ 8:52 AM by Ola Bini | 0 comments

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

Homepage: http://jtestr.codehaus.org

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

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

Features:

  • Integrates with Ant and Maven
  • Includes JRuby 1.1, Test/Unit, RSpec, 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 codebase as part of the build

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

Team:

Ola Bini - ola.bini@gmail.com

Anda Abramovici - anda.abramovici@gmail.com

Posted at 28 Dec @ 3:36 PM by Ola Bini | 0 comments

Since the project inception almost a month ago, lots of work has been put into making JtestR a really viable testing solution for everyday Java usage. I'm happy to report that we are now almost ready to go public. Some more documentation needs to be finished, and the Maven support should be fleshed out. But after that it's a wrap.

Prepare the Champagne.

Posted at 27 Dec @ 5:29 PM by Ola Bini | 0 comments
Powered by Atlassian Confluence