Sha256: 29064bf915692a145a80ea4173dc453140e7347ffb6ba18147d2eae260ed52d6
Contents?: true
Size: 890 Bytes
Versions: 7
Compression:
Stored size: 890 Bytes
Contents
require 'rspec/its' require 'beaker' begin require 'simplecov' require 'simplecov-console' require 'codecov' rescue LoadError else SimpleCov.start do track_files 'lib/**/*.rb' add_filter '/spec' enable_coverage :branch # do not track vendored files add_filter '/vendor' add_filter '/.vendor' end SimpleCov.formatters = [ SimpleCov::Formatter::Console, SimpleCov::Formatter::Codecov, ] end Dir.glob(Dir.pwd + '/lib/beaker/hypervisor/*.rb') {|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
7 entries across 7 versions & 1 rubygems