Merge pull request #765 from mattr-/fix-coverage

Fix coverage
This commit is contained in:
Tom Preston-Werner 2013-01-17 12:22:58 -08:00
commit 733587fa05
4 changed files with 7 additions and 8 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ _site/
bbin/
gh-pages/
site/_site/
coverage

View File

@ -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'

View File

@ -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[

View File

@ -1,3 +1,8 @@
require 'simplecov'
SimpleCov.start do
add_filter "/test/"
end
require 'rubygems'
gem 'RedCloth', '>= 4.2.1'