Source

rspec-formatter-webkit /

Filename Size Date modified Message
data/webkit-rspec-formatter
docs
lib/rspec
27 B
140 B
47 B
1.5 KB
1.1 KB
10.4 KB
1.2 MB
1.1 KB

A WebKit RSpec Formatter

This is a formatter for RSpec 2 that takes advantage of features in WebKit to make the output from RSpec in Textmate more fun.

Test output looks like this:

Example Output

Installation

To get started, install the webkit-rspec-formatter gem:

$ gem install webkit-rspec-formatter

If you're running specs in Textmate via the RSpec bundle, you can use the webkit formatter by opening Textmate's 'Advanced' Preferences and adding a TM_RSPEC_OPTS Shell Variable with the value --format RSpec::Core::Formatters::WebKit:

Setting TM_RSPEC_OPTS

That's it!

Miscellaneous

It's also usable anywhere else the standard HTML formatter is, of course. Also, while it's specifically intended to be used under the Textmate HTML viewer that the RSpec bundle uses, the output should work fine under recent Gecko/Firefox-based viewers, as well.

Patches/suggestions welcomed.