Sha256: fb5e28bcc5131e9f4bd231dd94b90064b63f86fe0fd936f0450f2b0abd103771

Contents?: true

Size: 704 Bytes

Versions: 10

Compression:

Stored size: 704 Bytes

Contents

if ENV['COVERAGE']
  require 'simplecov'

  SimpleCov.profiles.define 'gem' do
    add_filter '/spec/'
    add_filter '/features/'
    add_filter '/vendor/'

    add_group 'Libraries', '/lib/'
  end

  SimpleCov.start 'gem'
end

require 'bundler/setup'
require 'vcloud/core'
require 'support/stub_fog_interface.rb'

if ENV['COVERAGE']
  SimpleCov.at_exit do
    SimpleCov.result.format!
    # do not change the coverage percentage, instead add more unit tests to fix coverage failures.
    if SimpleCov.result.covered_percent < 71
      print "ERROR::BAD_COVERAGE\n"
      print "Coverage is less than acceptable limit(71%). Please add more tests to improve the coverage"
      exit(1)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vcloud-core-0.3.0 spec/spec_helper.rb
vcloud-core-0.2.0 spec/spec_helper.rb
vcloud-core-0.1.0 spec/spec_helper.rb
vcloud-core-0.0.13 spec/spec_helper.rb
vcloud-core-0.0.12 spec/spec_helper.rb
vcloud-core-0.0.11 spec/spec_helper.rb
vcloud-core-0.0.10 spec/spec_helper.rb
vcloud-core-0.0.9 spec/spec_helper.rb
vcloud-core-0.0.8 spec/spec_helper.rb
vcloud-core-0.0.7 spec/spec_helper.rb