trabajo-afectivo/test/support/coverage.rb

22 lines
746 B
Ruby
Raw Normal View History

return if !ENV['TRAVIS_CI']
require 'simplecov'
require 'simplecov-rcov'
require 'coveralls'
Coveralls.wear!
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::MultiFormatter.new([
SimpleCov::Formatter::RcovFormatter,
Coveralls::SimpleCov::Formatter
])
SimpleCov.start
fixtures :all
end