Sha256: 02556b41745beea91e25a5ed40416bc95f5ab441150331c90281c2816d4e92ec

Contents?: true

Size: 738 Bytes

Versions: 2

Compression:

Stored size: 738 Bytes

Contents

require 'simplecov'
require 'simplecov-lcov'

# 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,
  ]
)
SimpleCov.start do
  add_filter 'spec/'
end

require 'vagrant-libvirt'
require 'support/environment_helper'
require 'vagrant-spec/unit'

RSpec.configure do |spec|
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-libvirt-0.4.1 spec/spec_helper.rb
vagrant-libvirt-0.4.0 spec/spec_helper.rb