Add test coverage generation using simplecov

This commit is contained in:
Matt Rogers 2012-12-22 22:54:40 -06:00
parent a32f928fc8
commit 066c378705
4 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View file

@ -22,3 +22,4 @@ tags
/.bundle /.bundle
/public/assets/ /public/assets/
.sass-cache/ .sass-cache/
/coverage

View file

@ -48,6 +48,7 @@ group :development do
gem "yard" gem "yard"
gem "tolk" gem "tolk"
gem "bullet" gem "bullet"
gem "simplecov"
end end
group :test do group :test do

View file

@ -162,6 +162,10 @@ GEM
libwebsocket (~> 0.1.3) libwebsocket (~> 0.1.3)
multi_json (~> 1.0) multi_json (~> 1.0)
rubyzip rubyzip
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
sprockets (2.2.2) sprockets (2.2.2)
hike (~> 1.2) hike (~> 1.2)
multi_json (~> 1.0) multi_json (~> 1.0)
@ -221,6 +225,7 @@ DEPENDENCIES
sanitize sanitize
sass-rails sass-rails
selenium-webdriver selenium-webdriver
simplecov
sqlite3 sqlite3
swf_fu swf_fu
therubyracer therubyracer

View file

@ -1,3 +1,6 @@
require 'simplecov'
SimpleCov.start 'rails'
ENV["RAILS_ENV"] = "test" ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__) require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help' require 'rails/test_help'
@ -129,4 +132,4 @@ class ActionController::IntegrationTest
end end
end end
end end