Sha256: d2b330cc1a2334ef0aff02589984cd11dd4bece0603d33b0e98439642024e720

Contents?: true

Size: 631 Bytes

Versions: 28

Compression:

Stored size: 631 Bytes

Contents

if ENV['USE_SIMPLECOV']
  require 'simplecov'
  require 'simplecov-rcov'

  formatters = [
    SimpleCov::Formatter::HTMLFormatter,
    SimpleCov::Formatter::RcovFormatter
  ]

  if ENV['CODECLIMATE_REPO_TOKEN']
    require 'codeclimate-test-reporter'
    formatters << CodeClimate::TestReporter::Formatter
  end

  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[*formatters]

  unless ENV['DO_NOT_START_SIMPLECOV']
    mode = nil
    mode = 'rails' if ENV['RAILS_ENV']

    SimpleCov.start mode do
      load_profile 'test_frameworks'
      merge_timeout 3600
      coverage_dir 'artifacts/coverage'
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
macmillan-utils-1.0.44 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.43 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.42 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.41 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.40 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.39 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.38 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.37 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.36 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.35 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.34 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.33 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.32 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.31 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.30 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.29 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.27 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.23 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.22 lib/macmillan/utils/test_helpers/simplecov_helper.rb
macmillan-utils-1.0.21 lib/macmillan/utils/test_helpers/simplecov_helper.rb