I just finished adding coverage reports to cc this morning. I figured there may possibly be a better way to do this, but for those of you who want to do this and can't find any other way, here's a quick way to do so.

To do this just open up your cruise control rake file. I am using rspec so it was necessary for me to create this. If you do not have this configure yet you can download my example file HERE. All you need to do to get the coverage reports working is add this to your :cruise task.

1
2
3
4
5

if Rake.application.lookup('spec:rcov')
  CruiseControl::invoke_rake_task 'spec:rcov'
  system("ln -nsf #{RAILS_ROOT}/coverage #{CRUISE_ROOT}/public/coverage")
end    

This will run the spec:rcov task and symlink the results into the cruise control public directory. Don't forget to set the CRUISE_ROOT directory somewhere. I added it to the top of my rake file. Now when you point you browser to your cruise control instance/coverage you will get your rcov reports. There is one last thing to do here. I just modified my cruise control instance and added a link to the report so that it's easy to get a hold of. I just created a link to /coverage inside the app/views/projects/_project.rhtml partial so that the link shows up right after the checkin comments. It will show up if there are no errors in the build. Otherwise it will display the error message. I will create a patch shortly and put it up for download.

Think Relevance

November 24th, 2007

This week I received an offer from Relevance. I am very excited to accept this position and will be looking forward to moving down to Chapel Hill to join the team.

Rubyconf Presentation Slides

November 11th, 2007

I just realized that I have not yet posted my slides from Rubyconf. If you would like to download them you can do so HERE.

Rubyconf Afterthoughts

November 7th, 2007

Rubyconf 2007 was awesome. I had a great time and met a lot of great people. My talk went well and after I got over the exhaustion of the weekend I am much happier about the experience. I don't go to all that many conferences a year, but Rubyconf will always be one for me. Hopefully there will be more pics to come, but there are already a whole host of them tagged up on flickr when you search for rubyconf 2007. Stay tuned for Confreaks videos and more pictures to come.