Sha256: b1f3b9424484f9aa069b47b0367885ed2e5f1e6e12af153078c7b46066b83e1d
Contents?: true
Size: 1.09 KB
Versions: 20
Compression:
Stored size: 1.09 KB
Contents
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 # require 'pp' statement needed before fakefs, otherwise they can collide. Ref: # https://github.com/fakefs/fakefs#fakefs-----typeerror-superclass-mismatch-for-class-file require 'pp' require 'fakefs/spec_helpers' require 'beaker' require 'beaker-puppet' require 'helpers' # 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') require 'rspec/its' RSpec.configure do |config| config.include FakeFS::SpecHelpers config.include TestFileHelpers config.include HostHelpers end
Version data entries
20 entries across 20 versions & 1 rubygems