Sha256: 507b48528e968ff9bfdd6d22c34cf61da32364e6b65ed0911180062eb94ced42

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tidy_json-0.5.3 test/codecov_runner.rb
tidy_json-0.5.2 test/codecov_runner.rb
tidy_json-0.5.1 test/codecov_runner.rb
tidy_json-0.5.0 test/codecov_runner.rb