coverage.rb 746 B

123456789101112131415161718192021
  1. return if !ENV['TRAVIS_CI']
  2. require 'simplecov'
  3. require 'simplecov-rcov'
  4. require 'coveralls'
  5. Coveralls.wear!
  6. class ActiveSupport::TestCase
  7. # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
  8. #
  9. # Note: You'll currently still have to declare fixtures explicitly in integration tests
  10. # -- they do not yet inherit this setting
  11. SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
  12. SimpleCov::Formatter::RcovFormatter,
  13. Coveralls::SimpleCov::Formatter
  14. ])
  15. SimpleCov.start
  16. fixtures :all
  17. end