https://github.com/holman/leftright
Cool replacement for Test::Unit's TestRunner
https://github.com/holman/leftright
Last synced: 11 months ago
JSON representation
Cool replacement for Test::Unit's TestRunner
- Host: GitHub
- URL: https://github.com/holman/leftright
- Owner: holman
- License: mit
- Created: 2010-06-16T23:17:31.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-06-17T00:15:05.000Z (about 16 years ago)
- Last Synced: 2025-03-29T15:51:10.388Z (about 1 year ago)
- Language: Ruby
- Homepage: http://gemcutter.org/gems/leftright
- Size: 94.7 KB
- Stars: 1
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: MIT-LICENSE
Awesome Lists containing this project
README
= 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
== 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
From Rubyforge's gem server (might not be there):
gem install leftright
From Gemcutter:
gem install leftright --source http://gemcutter.org
Both are the same, and are loaded the same way:
require '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 (c) 2009 Jordi Bunster, released under the MIT license