Skip to content

Commit b0aa930

Browse files
committed
fix coverage recording
1 parent 141c7cd commit b0aa930

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

spec/spec_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require "debug"
4-
require "spec/support/coverage"
4+
require "./spec/support/coverage"
55
require "interactify"
66

77
if Interactify.sidekiq?

spec/support/coverage.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
require "simplecov"
44

55
SimpleCov.start do
6+
add_filter "/spec/"
7+
add_filter %r{_spec\.rb$} # This line excludes all files ending with _spec.rb
8+
69
add_group "Sidekiq jobs" do |src_file|
7-
src_file.project_filename =~ %r{lib/interactify/async}
10+
src_file.project_filename =~ %r{lib/interactify/async} && src_file.filename !~ /_spec\.rb/
811
end
912

1013
add_group "Wiring", "lib/interactify/wiring"

0 commit comments

Comments
 (0)