mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Filter out spec helpers and test code from coverage reports. This will prevent future changes reporting reduction in coverage even when only adding additional tests.
16 lines
349 B
Ruby
16 lines
349 B
Ruby
require 'simplecov'
|
|
require 'coveralls'
|
|
|
|
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
|
SimpleCov.start do
|
|
enable_coverage :branch if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.5')
|
|
add_filter 'spec/'
|
|
end
|
|
|
|
require 'vagrant-libvirt'
|
|
require 'support/environment_helper'
|
|
require 'vagrant-spec/unit'
|
|
|
|
RSpec.configure do |spec|
|
|
end
|