spec/spec_helper.rb in puppet-lint-leading_zero-check-0.1.1 vs spec/spec_helper.rb in puppet-lint-leading_zero-check-1.0.0

- old
+ new

@@ -1,7 +1,28 @@ -unless RUBY_VERSION =~ /^1\.8/ - require 'coveralls' - Coveralls.wear! +# frozen_string_literal: true + +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 'puppet-lint' PuppetLint::Plugins.load_spec_helper