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

Version Path
asana_exception_notifier-2.2.0 spec/spec_helper.rb
asana_exception_notifier-2.1.0 spec/spec_helper.rb
asana_exception_notifier-2.0.2 spec/spec_helper.rb
asana_exception_notifier-2.0.1 spec/spec_helper.rb
asana_exception_notifier-2.0.0 spec/spec_helper.rb
asana_exception_notifier-1.1.0 spec/spec_helper.rb
asana_exception_notifier-1.0.2 spec/spec_helper.rb
asana_exception_notifier-1.0.1 spec/spec_helper.rb
asana_exception_notifier-1.0.0 spec/spec_helper.rb
asana_exception_notifier-0.8.0 spec/spec_helper.rb
asana_exception_notifier-0.7.0 spec/spec_helper.rb
asana_exception_notifier-0.6.0 spec/spec_helper.rb
asana_exception_notifier-0.5.0 spec/spec_helper.rb
asana_exception_notifier-0.4.0 spec/spec_helper.rb
asana_exception_notifier-0.3.8 spec/spec_helper.rb
asana_exception_notifier-0.3.7 spec/spec_helper.rb
asana_exception_notifier-0.3.6 spec/spec_helper.rb
asana_exception_notifier-0.3.5 spec/spec_helper.rb
asana_exception_notifier-0.3.4 spec/spec_helper.rb
asana_exception_notifier-0.3.3 spec/spec_helper.rb