Add simplecov

This commit is contained in:
Erik Michaels-Ober 2012-03-06 15:24:13 -08:00
parent 5e0319f646
commit 8b4ecc2a2e
4 changed files with 6 additions and 0 deletions

1
test_app/.gitignore vendored
View File

@ -12,5 +12,6 @@
/db/*.sqlite3 /db/*.sqlite3
# Ignore all logfiles and tempfiles. # Ignore all logfiles and tempfiles.
/coverage
/log/*.log /log/*.log
/tmp /tmp

View File

@ -39,6 +39,7 @@ end
group :test do group :test do
gem 'cucumber-rails' gem 'cucumber-rails'
gem 'simplecov'
end end
gem 'jquery-rails' gem 'jquery-rails'

View File

@ -1,5 +1,7 @@
# This file is copied to spec/ when you run 'rails generate rspec:install' # This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test' ENV["RAILS_ENV"] ||= 'test'
require 'simplecov'
SimpleCov.start 'rails'
require File.expand_path("../../config/environment", __FILE__) require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails' require 'rspec/rails'

View File

@ -1,4 +1,6 @@
ENV["RAILS_ENV"] = "test" ENV["RAILS_ENV"] = "test"
require 'simplecov'
SimpleCov.start 'rails'
require File.expand_path('../../config/environment', __FILE__) require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help' require 'rails/test_help'