Skip to content

Commit

Permalink
Added RCOV rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
tinogomes committed Apr 5, 2009
1 parent 18f4bdd commit 4ba6e53
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require "rake"
require "rake/testtask"
require "rake/rdoctask"
require 'rcov/rcovtask'

Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].each do |req|
load req
Expand Down Expand Up @@ -128,5 +129,13 @@ task "publish" => "build" do
@rubyforge.add_release('tuiter', 'tuiter', "#{spec.version}", "#{spec.name}-#{spec.version}.gem")
end

desc "Rcov"
Rcov::RcovTask.new(:rcov) do |t|
t.pattern = ENV["FROM"] || FileList["test/**/*_test.rb"]
t.output_dir = "coverage"
t.rcov_opts = ["-x gem,TextMate", "--text-summary", "--html", "--charset UTF8"]
# t.rcov_opts = ["-x gem,TextMate", "--text-summary", "--html", "--charset UTF8"]
end

task :default => ["test"]

0 comments on commit 4ba6e53

Please sign in to comment.