Sha256: 0401020bae34715538ef521decfd477d8a44d5b57a40be9ffb71f3d9383b121c

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true

if ENV['COVERAGE']
  begin
    require 'simplecov'
    SimpleCov.start
    SimpleCov.command_name 'Unit Tests'

    if ENV['CI']
      require 'codecov'
      SimpleCov.formatter = SimpleCov::Formatter::Codecov
    end
  rescue LoadError
    warn "Can't locate coverage drivers! Try running: `bundle install` first."
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tidy_json-0.4.0 test/codecov_runner.rb
tidy_json-0.3.0 test/codecov_runner.rb