diff --git a/.gitignore b/.gitignore index 9c7a17eb..1bc95092 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ _site/ bbin/ gh-pages/ site/_site/ +coverage diff --git a/Rakefile b/Rakefile index 257da617..9504dc1d 100644 --- a/Rakefile +++ b/Rakefile @@ -55,14 +55,6 @@ Rake::TestTask.new(:test) do |test| test.verbose = true end -desc "Generate RCov test coverage and open in your browser" -task :coverage do - require 'rcov' - sh "rm -fr coverage" - sh "rcov test/test_*.rb" - sh "open coverage/index.html" -end - require 'rdoc/task' Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'rdoc' diff --git a/jekyll.gemspec b/jekyll.gemspec index 86df546b..ea593886 100644 --- a/jekyll.gemspec +++ b/jekyll.gemspec @@ -41,6 +41,7 @@ Gem::Specification.new do |s| s.add_development_dependency('rdiscount', "~> 1.6") s.add_development_dependency('redcarpet', "~> 2.1.1") s.add_development_dependency('launchy', "~> 2.1.2") + s.add_development_dependency('simplecov', "~> 0.7") # = MANIFEST = s.files = %w[ diff --git a/test/helper.rb b/test/helper.rb index 491a41c7..69a4cbe5 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,3 +1,8 @@ +require 'simplecov' +SimpleCov.start do + add_filter "/test/" +end + require 'rubygems' gem 'RedCloth', '>= 4.2.1'