coverage.rb 769 B

12345678910111213141516171819202122
  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. merge_timeout = 3600
  16. SimpleCov.start
  17. fixtures :all
  18. end