Skip to content

Commit

Permalink
Add simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanM committed Mar 10, 2013
1 parent bd5533e commit 5089d3b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -29,3 +29,4 @@ public/spree
config/abr.yml
config/heroku_env.rb
NERD_tree*
coverage
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -50,6 +50,7 @@ group :test, :development do
gem 'faker'
gem 'capybara'
gem 'database_cleaner', '0.7.1', :require => false
gem 'simplecov', :require => false
gem 'spork', '~> 1.0rc'
gem 'awesome_print'
gem "letter_opener"
Expand Down
22 changes: 12 additions & 10 deletions Gemfile.lock
Expand Up @@ -135,7 +135,7 @@ GEM
i18n (~> 0.6)
multi_json (~> 1.0)
acts_as_list (0.1.4)
addressable (2.3.2)
addressable (2.3.3)
andand (1.3.3)
ansi (1.4.2)
arel (3.0.2)
Expand All @@ -160,8 +160,8 @@ GEM
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
xpath (~> 1.0.0)
childprocess (0.3.6)
ffi (~> 1.0, >= 1.0.6)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.1)
Expand Down Expand Up @@ -209,7 +209,7 @@ GEM
faker (1.0.1)
i18n (~> 0.4)
ffaker (1.12.1)
ffi (1.3.1)
ffi (1.4.0)
haml (3.1.6)
highline (1.6.11)
hike (1.2.1)
Expand All @@ -232,9 +232,6 @@ GEM
letter_opener (1.0.0)
launchy (>= 2.0.4)
libv8 (3.3.10.4)
libwebsocket (0.1.7.1)
addressable
websocket
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
Expand Down Expand Up @@ -327,13 +324,17 @@ GEM
select2-rails (3.3.0)
sass-rails (~> 3.2)
thor (~> 0.14)
selenium-webdriver (2.27.2)
selenium-webdriver (2.31.0)
childprocess (>= 0.2.5)
libwebsocket (~> 0.1.3)
multi_json (~> 1.0)
rubyzip
websocket (~> 1.0.4)
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)
slop (3.3.3)
spork (1.0.0rc3)
sprockets (2.2.2)
Expand Down Expand Up @@ -368,7 +369,7 @@ GEM
railties (>= 3.0)
warden (1.2.1)
rack (>= 1.0)
websocket (1.0.6)
websocket (1.0.7)
xpath (1.0.0)
nokogiri (~> 1.3)

Expand Down Expand Up @@ -398,6 +399,7 @@ DEPENDENCIES
sass-rails (~> 3.2.3)
shoulda-matchers
simple_form!
simplecov
spork (~> 1.0rc)
spree!
spree_auth_devise!
Expand Down
6 changes: 6 additions & 0 deletions script/rails
@@ -1,6 +1,12 @@
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.

if ENV['RAILS_ENV'] == 'test'
require 'simplecov'
SimpleCov.start 'rails'
puts "required simplecov"
end

APP_PATH = File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands'
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
@@ -1,3 +1,6 @@
require 'simplecov'
SimpleCov.start

require 'rubygems'
require 'spork'
#uncomment the following line to use spork with the debugger
Expand Down

0 comments on commit 5089d3b

Please sign in to comment.