Skip to content

Commit

Permalink
SimpleCov configuration
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
elektronaut committed Oct 24, 2012
1 parent 3a9ea61 commit 1879456
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
.DS_Store
.bundle
coverage/*
log/*.log
log/*.log.*
log/*.lck
Expand Down
3 changes: 3 additions & 0 deletions .simplecov
@@ -0,0 +1,3 @@
SimpleCov.start 'rails' do
add_filter "/.bundle/"
end
4 changes: 4 additions & 0 deletions Gemfile
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Expand Up @@ -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)
Expand Down Expand Up @@ -265,6 +269,7 @@ DEPENDENCIES
ruby_gntp
sass-rails
shoulda-matchers
simplecov
spork
sqlite3
sunspot-rails-tester
Expand Down
9 changes: 9 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -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__)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1879456

Please sign in to comment.