Skip to content

Commit

Permalink
Add rcov task
Browse files Browse the repository at this point in the history
  • Loading branch information
albanpeignier committed Dec 26, 2009
1 parent e373a97 commit ceefbdc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*~
coverage/
14 changes: 14 additions & 0 deletions Rakefile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,17 @@
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
end

begin
require 'rubygems'
require 'rcov/rcovtask'

Rcov::RcovTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
t.rcov_opts = %w{--exclude / --include-file ^lib}
end
rescue LoadError
puts "Can't load rcov, please install rcov gem"
end

0 comments on commit ceefbdc

Please sign in to comment.