Since getting the BDD/TDD bug, RSpec and RCov have become close friends of mine. And while I love the flowing green dots, red 'F's, and yellow asterisks of autospec in my Terminal window, the HTML generated by RCov always left me feeling like it was still 1999.

So I found a good, robust fork of RCov (via Spicycode) and created a new fork that:

rcov_html_output.png

And if you don't like the default formatting, you can provide your own! Simply create a file called rcov.css and place it in your my_project/spec/ folder, and rcov will use that CSS file instead.

I've sent a pull request to incorporate my changes into the fork, but if you're impatient to get your hands on a prettier RCov:

sudo gem install Bantik-rcov

You could alternately clone the GitHub repository:

cd your_projects_folder_or_wherever
git clone git://github.com/Bantik/rcov.git
cd rcov
gem build rcov.gemspec
sudo ruby setup.rb
sudo gem install rcov-0.8.2.2

Contributions and suggestions are always welcome.

Update from August 12, 2009:

I got an email from the core RCov team the other day:

I just noticed your fork of RCov. I like the style changes you made and would like to make them a part of the official RCov. Since your fork we have actually completely rewritten the output formatters so they are somewhat sane. Do you think you would have time to take what you did and fit it into the new formatter system? I am very busy fixing some of the internals and unfortunately this falls into the "when I have time" bucket, but I would really like to have it!

I plan on integrating my UI changes in the next couple of weeks.<

Related Articles


Comments

Leave a Comment


IdolHands.com Spam-o-MeterTM
Bot
Spammer
Moron
Human






* Required fields.