From 30f743b8cc429067b08ad7deab7727aa38b67d65 Mon Sep 17 00:00:00 2001 From: tris Date: Tue, 20 Aug 2024 16:23:12 +0800 Subject: [PATCH] Enable simplecov and enforce 100% branching coverage --- spec/spec_helper.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 195a8a5..65d5874 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,11 @@ +require 'simplecov' + +SimpleCov.start do + enable_coverage :branch + primary_coverage :branch + minimum_coverage line: 100, branch: 100 +end + require 'simplecov/inline' RSpec.configure do |config|