added missing gem and configuration for code coverage
This commit is contained in:
parent
4342bc7b49
commit
3a6f8b9e86
2 changed files with 3 additions and 0 deletions
1
Gemfile
1
Gemfile
|
@ -64,3 +64,4 @@ gem 'em-websocket'
|
|||
|
||||
# code coverage
|
||||
gem 'simplecov'
|
||||
gem 'simplecov-rcov'
|
||||
|
|
|
@ -2,12 +2,14 @@ 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue