Permalink
Browse files

rcov/coverage makes the specs take a) 2x as long to boot and b) slows…

… down actual specs by about 25%
  • Loading branch information...
1 parent 46ca33d commit 05ac3ea8676cdfaad83eba6de93c9ca58eafd658 @parndt parndt committed Feb 4, 2012
Showing with 0 additions and 25 deletions.
  1. +0 −8 Gemfile
  2. +0 −17 spec/spec_helper.rb
View
@@ -29,14 +29,6 @@ group :development, :test do
gem 'refinerycms-testing', '~> 2.0.0'
gem 'generator_spec', '>= 0.8.5'
- platforms :mri_18 do
- gem 'rcov'
- end
-
- platforms :mri_19 do
- gem 'simplecov'
- end
-
platforms :mswin, :mingw do
gem 'win32console'
gem 'rb-fchange', '~> 0.0.5'
View
@@ -2,28 +2,11 @@
require 'rubygems'
-if RUBY_VERSION > "1.9"
- require "simplecov"
-end
-
-def setup_simplecov
- SimpleCov.start do
- Dir[File.expand_path('../../**/*.gemspec')].map{|g| g.split('/')[-2]}.each do |dir|
- add_group dir.capitalize, "#{dir}/"
- end
- %w(testing config spec vendor).each do |filter|
- add_filter "/#{filter}/"
- end
- end
-end
-
ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../') unless defined?(ENGINE_RAILS_ROOT)
def setup_environment
# Configure Rails Environment
ENV["RAILS_ENV"] ||= 'test'
- # simplecov should be loaded _before_ models, controllers, etc are loaded.
- setup_simplecov unless ENV["SKIP_COV"] || !defined?(SimpleCov)
require File.expand_path("../dummy/config/environment", __FILE__)

0 comments on commit 05ac3ea

Please sign in to comment.