From 80a44fc8aab683beff000fa7933f865610290fc9 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Mon, 7 Aug 2023 20:17:21 -0400 Subject: [PATCH] Added branch coverage support --- spec/spec_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index adb67c3..7aad59d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -24,7 +24,8 @@ SimpleCov.start do add_group 'Frames', 'lib/apex/frame' - coverage_criterion :branch + #coverage_criterion :branch + enable_coverage :branch track_files '{app,lib}/**/*.rb' end # OPTIONAL @@ -36,7 +37,7 @@ SimpleCov::Formatter::Console.sort = 'path' # sort by file path SimpleCov::Formatter::Console.show_covered = true # show all files in coverage report SimpleCov::Formatter::Console.max_rows = 300 # integer #SimpleCov::Formatter::Console.max_lines = 5 # integer -SimpleCov::Formatter::Console.missing_len = 175 # integer +SimpleCov::Formatter::Console.missing_len = 125 # integer #SimpleCov::Formatter::Console.output_style = 'block' # 'table' (default) or 'block' #SimpleCov::Formatter::Console.table_options = {:style => {:width => 200}} -- GitLab