Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SimpleCov configuration

[skip ci]
  • Loading branch information...
commit 18794560f59fde6e902480f3365e5070995a844e 1 parent 3a9ea61
@elektronaut authored
View
1  .gitignore
@@ -1,5 +1,6 @@
.DS_Store
.bundle
+coverage/*
log/*.log
log/*.log.*
log/*.lck
View
3  .simplecov
@@ -0,0 +1,3 @@
+SimpleCov.start 'rails' do
+ add_filter "/.bundle/"
+end
View
4 Gemfile
@@ -63,6 +63,10 @@ group :development do
gem 'guard-rspec'
end
+group :test do
+ gem 'simplecov', :require => false
+end
+
group :test, :development do
gem 'sunspot_solr'
gem 'sunspot-rails-tester'
View
5 Gemfile.lock
@@ -202,6 +202,10 @@ GEM
rubyzip
shoulda-matchers (1.1.0)
activesupport (>= 3.0.0)
+ simplecov (0.7.1)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.7.1)
+ simplecov-html (0.7.1)
spork (0.9.2)
sprockets (2.1.3)
hike (~> 1.2)
@@ -265,6 +269,7 @@ DEPENDENCIES
ruby_gntp
sass-rails
shoulda-matchers
+ simplecov
spork
sqlite3
sunspot-rails-tester
View
9 spec/spec_helper.rb
@@ -6,6 +6,10 @@
# if you change any configuration or code from libraries loaded here, you'll
# need to restart spork for it take effect.
+ unless ENV['DRB']
+ require 'simplecov'
+ end
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
@@ -69,6 +73,11 @@
end
Spork.each_run do
+
+ if ENV['DRB']
+ require 'simplecov'
+ end
+
# This code will be run each time you run your specs.
# Requires supporting ruby files with custom matchers and macros, etc,
Please sign in to comment.
Something went wrong with that request. Please try again.