Sha256: 67e4e34c2a8c8710763b60b0faeedb15954d9fbb281942b418e25db662b22a7c
Contents?: true
Size: 1.1 KB
Versions: 62
Compression:
Stored size: 1.1 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[*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 'celluloid_pubsub' require 'rspec/autorun' RSpec.configure do |config| require 'rspec/expectations' config.include RSpec::Matchers config.mock_with :mocha config.after(:suite) do if SimpleCov.running silence_stream(STDOUT) do SimpleCov::Formatter::HTMLFormatter.new.format(SimpleCov.result) end SimpleCov::Formatter::SummaryFormatter.new.format(SimpleCov.result) end end end
Version data entries
62 entries across 62 versions & 2 rubygems
Version | Path |
---|---|
celluloid_pubsub-0.0.2 | spec/spec_helper.rb |
celluloid_pubsub-0.0.1 | spec/spec_helper.rb |