Skip to content

Commit

Permalink
adding spec:coverage task and fixing rdoc task
Browse files Browse the repository at this point in the history
  • Loading branch information
aberant committed Jun 21, 2010
1 parent 9090973 commit 3626f46
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Rakefile
Expand Up @@ -27,6 +27,16 @@ Spec::Rake::SpecTask.new do |t|
t.spec_opts = ["--colour"]
end

namespace :spec do
### Run the specifications and generate coverage information
Spec::Rake::SpecTask.new( :coverage ) do |r|
r.rcov = true
r.rcov_dir = 'coverage'
r.rcov_opts = %w( -x Library\/Ruby,^spec,rvm )
r.libs << 'lib'
end
end

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'docs/rdoc'
Expand All @@ -35,7 +45,7 @@ Rake::RDocTask.new do |rdoc|
rdoc.options += [
'-w', '4',
'-SHNa',
'-i', BASE_DIR.to_s,
'-i', 'lib',
'-m', 'README',
'-W', 'http://projects.bleything.net/repositories/changes/midiator/',
]
Expand Down

0 comments on commit 3626f46

Please sign in to comment.