From 7bf955fcd0701c37a3f2a98216b292f3fff73406 Mon Sep 17 00:00:00 2001 From: Phil Friderici Date: Tue, 8 Aug 2023 10:22:28 +0000 Subject: [PATCH] Set resource coverage percentage to 100% --- .sync.yml | 6 +++++- spec/spec_helper.rb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.sync.yml b/.sync.yml index 8c2c98e..8379b4f 100644 --- a/.sync.yml +++ b/.sync.yml @@ -5,4 +5,8 @@ # # See https://github.com/puppetlabs/pdk-templates/blob/main/config_defaults.yml # for the default values. ---- {} +--- +spec/spec_helper.rb: + coverage_report: true + minimum_code_coverage_percentage: 100 + diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6820ceb..61df294 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -46,7 +46,7 @@ end c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT'] c.after(:suite) do - RSpec::Puppet::Coverage.report!(0) + RSpec::Puppet::Coverage.report!(100) end # Filter backtrace noise