Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Cool replacement for Test::Unit's TestRunner

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 WHATSNEW
Octocat-spinner-32 leftright.gemspec
README.rdoc

leftright

leftright is kind of like the redgreen gem. It makes passing tests look green, exceptions yellow, and failures red. But then there's more:

* It lets you know which TestCase class is being tested
* It shows you the full text of failures and exceptions as they happen
* It skips all remaining tests for a TestCase class if one fails

This release was tested under:

* Rubinius 1.0.1
* REE 1.8.7
* MRI 1.8.6 and 1.8.7
* JRuby 1.4.0 and 1.5.2 (both in 1.8.7 mode)

Dependencies

Right now this is pretty heavily dependent on Test::Unit, so it won't work in Ruby 1.9+ using MiniTest. Support is planned as soon as I find myself using the Ruby 1.9 + Rails 3 combo day to day.

Installation instructions

gem install jleo-leftright

If you're on JRuby, you'll need to install ffi-ncurses to format properly:

jruby -S gem install ffi-ncurses

Example usage

require 'leftright'

class SomeTest < Test::Unit::TestCase
  def test_that_true_is_indeed_true
    assert_equal true, true
  end
end

Then run the file with ruby. Mind you, it gets a lot more exciting with your own tests, specially if they fail. :)

Legal

Copyright © 2009, 2010 Jordi Bunster, released under the MIT license

Something went wrong with that request. Please try again.