Sha256: c17f3964c285f9358ca9e8a42e5f56b7e966b8593bd2ba0ca00c2972596410d7
Contents?: true
Size: 1.07 KB
Versions: 35
Compression:
Stored size: 1.07 KB
Contents
# Configure Rails Envinronment ENV['RAILS_ENV'] = 'test' require 'simplecov' require 'simplecov-summary' require 'coveralls' # require "codeclimate-test-reporter" formatters = [SimpleCov::Formatter::HTMLFormatter] formatters << Coveralls::SimpleCov::Formatter # if ENV['TRAVIS'] # formatters << CodeClimate::TestReporter::Formatter # if ENV['CODECLIMATE_REPO_TOKEN'] && ENV['TRAVIS'] SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(formatters) Coveralls.wear! SimpleCov.start 'rails' do add_filter 'spec' at_exit {} end # CodeClimate::TestReporter.configure do |config| # config.logger.level = Logger::WARN # end # CodeClimate::TestReporter.start require 'bundler/setup' require 'asana_exception_notifier' RSpec.configure do |config| require 'rspec/expectations' require 'rspec/mocks' config.include RSpec::Matchers config.mock_with :rspec config.after(:suite) do if SimpleCov.running SimpleCov::Formatter::HTMLFormatter.new.format(SimpleCov.result) SimpleCov::Formatter::SummaryFormatter.new.format(SimpleCov.result) end end end
Version data entries
35 entries across 35 versions & 1 rubygems