diff --git a/Gemfile b/Gemfile index 6fd98a28b..ac23c5664 100644 --- a/Gemfile +++ b/Gemfile @@ -61,3 +61,6 @@ gem 'mysql2' # event machine gem 'eventmachine' gem 'em-websocket' + +# code coverage +gem 'simplecov' diff --git a/test/test_helper.rb b/test/test_helper.rb index 259170548..e0bdaa04a 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,12 +1,14 @@ ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' +require 'simplecov' 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.start fixtures :all # load seeds