Permalink
Browse files

Added in a Rake task for running the specs with rcov, plus a line in …

….gitignore to ignore the 'coverage' directory generated when running it
  • Loading branch information...
1 parent 49485da commit a27aa2bacfa7cd79fc2b316f7d99f6548b46d559 @justinfrench committed Nov 15, 2008
Showing with 7 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +6 −0 Rakefile
View
@@ -1 +1,2 @@
.DS_Store
+coverage
View
@@ -26,3 +26,9 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
+desc "Run all examples with RCov"
+Spec::Rake::SpecTask.new('examples_with_rcov') do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.rcov = true
+ t.rcov_opts = ['--exclude', 'spec,Library']
+end

0 comments on commit a27aa2b

Please sign in to comment.