Sha256: 4550f0d238058be0c52b0c2e106d34bc99a96a17598b754c4187d656226fef5e

Contents?: true

Size: 964 Bytes

Versions: 1

Compression:

Stored size: 964 Bytes

Contents

require 'beaker'
require 'mock_vsphere'
require 'mock_vsphere_helper'

begin
  require 'simplecov'
  require 'simplecov-console'
  require 'codecov'
rescue LoadError
  # Do nothing if no required gem installed
else
  SimpleCov.start do
    track_files 'lib/**/*.rb'

    add_filter '/spec'
    # do not track vendored files
    add_filter '/vendor'
    add_filter '/.vendor'

    enable_coverage :branch
  end

  SimpleCov.formatters = [
    SimpleCov::Formatter::Console,
    SimpleCov::Formatter::Codecov,
  ]
end

Dir['./lib/beaker/hypervisor/*.rb'].sort.each { |file| require file }

# setup & require beaker's spec_helper.rb
beaker_gem_spec = Gem::Specification.find_by_name('beaker')
beaker_gem_dir = beaker_gem_spec.gem_dir
beaker_spec_path = File.join(beaker_gem_dir, 'spec')
$LOAD_PATH << beaker_spec_path
require File.join(beaker_spec_path, 'spec_helper.rb')

RSpec.configure do |config|
  config.include TestFileHelpers
  config.include HostHelpers
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beaker-vcloud-2.0.0 spec/spec_helper.rb