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
capistrano_multiconfig_parallel-0.15.4 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.15.3 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.15.2 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.15.1 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.15.0 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.14.0 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.13.2 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.13.1 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.13.0 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.12.9 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.12.8 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.12.7 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.12.6 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.12.5 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.12.3 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.12.2 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.12.1 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.12.0 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.11.6 spec/spec_helper.rb
capistrano_multiconfig_parallel-0.11.5 spec/spec_helper.rb