2020-12-15 13:15:06 +00:00
|
|
|
require 'simplecov'
|
2021-02-20 15:23:16 +00:00
|
|
|
require 'simplecov-lcov'
|
2020-12-15 13:15:06 +00:00
|
|
|
|
2021-02-20 15:23:16 +00:00
|
|
|
# patch simplecov configuration
|
|
|
|
|
if ! SimpleCov::Configuration.method_defined? :branch_coverage?
|
|
|
|
|
module SimpleCov
|
|
|
|
|
module Configuration
|
|
|
|
|
def branch_coverage?
|
|
|
|
|
return false
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
SimpleCov::Formatter::LcovFormatter.config do |config|
|
|
|
|
|
config.report_with_single_file = true
|
|
|
|
|
config.single_report_path = 'coverage/lcov.info'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(
|
|
|
|
|
[
|
|
|
|
|
SimpleCov::Formatter::HTMLFormatter,
|
|
|
|
|
SimpleCov::Formatter::LcovFormatter,
|
|
|
|
|
]
|
|
|
|
|
)
|
2020-12-15 13:15:06 +00:00
|
|
|
SimpleCov.start do
|
|
|
|
|
add_filter 'spec/'
|
|
|
|
|
end
|
2016-04-13 12:11:16 +02:00
|
|
|
|
2014-07-04 11:09:00 -06:00
|
|
|
require 'vagrant-libvirt'
|
|
|
|
|
require 'support/environment_helper'
|
2016-01-25 19:07:14 +00:00
|
|
|
require 'vagrant-spec/unit'
|
2014-07-04 11:09:00 -06:00
|
|
|
|
2021-05-15 14:37:55 +01:00
|
|
|
Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each { |f| require f }
|
|
|
|
|
|
2014-07-04 11:09:00 -06:00
|
|
|
RSpec.configure do |spec|
|
|
|
|
|
end
|