Skip to content
Browse files

Run coverage by default in ruby 1.8

  • Loading branch information...
1 parent 948948a commit 788bd9f101eb6bc4367715909c5f3c9f749384e8 @spicycode spicycode committed
Showing with 9 additions and 5 deletions.
  1. +9 −5 Rakefile
View
14 Rakefile
@@ -9,7 +9,7 @@ require 'rspec/core/rake_task'
require 'cucumber/rake/task'
begin
- # require 'jeweler'
+ require 'jeweler'
# Jeweler::Tasks.new do |gem|
# gem.name = "rspec-core"
# gem.summary = "RSpec Core"
@@ -31,13 +31,17 @@ Cucumber::Rake::Task.new :features
desc "Run all examples using rcov"
Rspec::Core::RakeTask.new :rcov do |t|
- t.pattern = "spec/**/*_spec.rb"
t.rcov = true
- t.ruby_opts = %[-Ilib -Ispec]
- t.rcov_opts = %[--exclude "mocks,expectations,gems/*,spec/resources,spec/lib,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*" --text-summary --sort coverage]
+ t.rcov_opts = %[-Ilib -Ispec --exclude "mocks,expectations,gems/*,spec/resources,spec/lib,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*" --text-report --sort coverage --only-uncovered --failure-threshold=90]
+ t.pattern = "spec/**/*_spec.rb"
+end
+
+if RUBY_PLATFORM = '1.9.1'
+ task :default => [:spec, :features]
+else
+ task :default => [:rcov, :features]
end
-task :default => [:spec, :features]
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')

0 comments on commit 788bd9f

Please sign in to comment.
Something went wrong with that request. Please try again.