rspec-formatter-webkit /

Filename Size Date modified Message
data
docs
legacy
lib
72 B
560 B
189 B
184 B
1.5 KB
2.2 KB
1.1 KB
1.2 KB
1.2 MB

A WebKit RSpec Formatter

http://deveiate.org/webkit-rspec-formatter.html

Description

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 rspec-formatter-webkit gem:

$ gem install rspec-formatter-webkit

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.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.