Skip to content

Instantly share code, notes, and snippets.

View jstirk's full-sized avatar

Jason Stirk jstirk

View GitHub Profile
@jstirk
jstirk / gist:176810
Created August 28, 2009 06:54
rcov.rake
require 'cucumber/rake/task' #I have to add this
require 'spec/rake/spectask'
namespace :rcov do
Cucumber::Rake::Task.new(:cucumber) do |t|
t.rcov = true
t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/ --aggregate coverage.data}
t.rcov_opts << %[-o "coverage"]
end
@jstirk
jstirk / gist:176809
Created August 28, 2009 06:54
cruise.rake
# This assumes you have the metric_fu and kablame plugins installed.
# Set the artifacts dir for development
ENV['CC_BUILD_ARTIFACTS'] ||= File.expand_path("#{RAILS_ROOT}/metrics")
rspec_base = File.expand_path("#{RAILS_ROOT}/vendor/plugins/rspec/lib")
$LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'