public
Description: Awesome add-ons to make Shoulda more awesome.
Homepage:
Clone URL: git://github.com/mattmatt/shoulda-addons.git
name age message
file .gitignore Sat Oct 17 14:26:23 -0700 2009 Initial add. [mattmatt]
file README.md Fri Nov 06 06:31:30 -0800 2009 Updated contribs. [mattmatt]
file Rakefile Thu Nov 19 02:04:39 -0800 2009 Added a couple of simple test to see if everyth... [mattmatt]
file VERSION Fri Nov 06 06:31:49 -0800 2009 Version bump to 0.2.2 [mattmatt]
directory lib/ Thu Nov 19 02:04:28 -0800 2009 Explicitly require benchmark code. [mattmatt]
file shoulda-addons.gemspec Thu Nov 19 01:44:42 -0800 2009 updated gemspec. [mattmatt]
directory test/ Thu Nov 19 02:04:39 -0800 2009 Added a couple of simple test to see if everyth... [mattmatt]
README.md

Like RSpec's profiling of the 10 slowest test cases? Like how it can print out the full test names in shiny and colorful terminal awesomeness instead of meaningless dots? Me too.

require 'shoulda_benchmark'

Patches Shoulda to track runtimes of all your tests, showing you the 10 slowest.

require 'shoulda_list_runner'

Patches Test::Unit to print out test names colored either red or green (you can guess which is which). Blatantly inspired by RedGreen and adapted for Shoulda awesomeness.

require 'shoulda_addons' if you want both, and why wouldn't you?

Install from gemcutter via: gem install shoulda-addons

Is it safe for Ruby 1.9? Yes! Support for the new MiniTest framework is built-in.

Author: Mathias Meyer meyer@paperplanes.de

Contributions

  • Test::Unit 2.0 compatibility (github.com/ffmike)
  • Include the test class name in the benchmark output for Test::Unit (github.com/tobias)