spec/spec_helper.rb in puppet-lint-trailing_comma-check-0.4.2 vs spec/spec_helper.rb in puppet-lint-trailing_comma-check-0.4.3
- old
+ new
@@ -1,6 +1,29 @@
-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