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
/public/assets/
.sass-cache/
/coverage

View file

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

View file

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

View file

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