diff --git a/Gemfile b/Gemfile index 6fd98a28b..e3fa62229 100644 --- a/Gemfile +++ b/Gemfile @@ -61,3 +61,7 @@ gem 'mysql2' # event machine gem 'eventmachine' gem 'em-websocket' + +# code coverage +gem 'simplecov' +gem 'simplecov-rcov' diff --git a/test/test_helper.rb b/test/test_helper.rb index 259170548..bb02ae838 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,12 +1,16 @@ ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' +require 'simplecov' +require 'simplecov-rcov' class ActiveSupport::TestCase # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order. # # Note: You'll currently still have to declare fixtures explicitly in integration tests # -- they do not yet inherit this setting + SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter + SimpleCov.start fixtures :all # load seeds