From 0c4eb02038afc11907927fb81f0e80f97e41b6b8 Mon Sep 17 00:00:00 2001 From: angusmcleod Date: Mon, 17 May 2021 19:57:09 +1200 Subject: [PATCH] Exclude gems from simplecov --- spec/plugin_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/plugin_helper.rb b/spec/plugin_helper.rb index 6680874f..93f33a81 100644 --- a/spec/plugin_helper.rb +++ b/spec/plugin_helper.rb @@ -6,7 +6,7 @@ if ENV['SIMPLECOV'] SimpleCov.start do root "plugins/discourse-custom-wizard" track_files "plugins/discourse-custom-wizard/**/*.rb" - add_filter { |src| src.filename =~ /(\/spec\/|\/db\/|plugin\.rb|api)/ } + add_filter { |src| src.filename =~ /(\/spec\/|\/db\/|plugin\.rb|api|gems)/ } SimpleCov.minimum_coverage 80 end end