From 831ccfc73101cc05bc2c495edcec771afe6e1a66 Mon Sep 17 00:00:00 2001 From: Adam Hutchison Date: Sat, 30 Nov 2024 16:24:05 -0700 Subject: [PATCH] Fix code coverage Needed to add: SimpleCov.external_at_exit = true to the test helper to get SimpleCov to work properly. https://github.com/simplecov-ruby/simplecov/issues/1112 --- Gemfile | 2 +- test/test_helper.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 88ac411..7371c24 100644 --- a/Gemfile +++ b/Gemfile @@ -11,6 +11,6 @@ gem "rack-test", "~> 2.1" gem "rake", "~> 13.0" -gem "simplecov", "~> 0.22" +gem "simplecov", "~> 0.22", require: false gem "standard", "~> 1.3" diff --git a/test/test_helper.rb b/test/test_helper.rb index ac7eba9..a69caed 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -2,6 +2,7 @@ # Start SimpleCov require "simplecov" +SimpleCov.external_at_exit = true SimpleCov.start do add_filter "/test" end