Sha256: 113247915752c3507acee690124735b42700d247dd38559ab735b5fb3e73c378

Contents?: true

Size: 1.08 KB

Versions: 17

Compression:

Stored size: 1.08 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'

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

17 entries across 17 versions & 1 rubygems

Version Path
celluloid_pubsub-0.6.1 spec/spec_helper.rb
celluloid_pubsub-0.6.0 spec/spec_helper.rb
celluloid_pubsub-0.5.2 spec/spec_helper.rb
celluloid_pubsub-0.5.1 spec/spec_helper.rb
celluloid_pubsub-0.5.0 spec/spec_helper.rb
celluloid_pubsub-0.4.8 spec/spec_helper.rb
celluloid_pubsub-0.4.7 spec/spec_helper.rb
celluloid_pubsub-0.4.6 spec/spec_helper.rb
celluloid_pubsub-0.4.5 spec/spec_helper.rb
celluloid_pubsub-0.4.4 spec/spec_helper.rb
celluloid_pubsub-0.4.3 spec/spec_helper.rb
celluloid_pubsub-0.4.2 spec/spec_helper.rb
celluloid_pubsub-0.4.1 spec/spec_helper.rb
celluloid_pubsub-0.3.3 spec/spec_helper.rb
celluloid_pubsub-0.3.2 spec/spec_helper.rb
celluloid_pubsub-0.3.1 spec/spec_helper.rb
celluloid_pubsub-0.3.0 spec/spec_helper.rb