Coverage by minimum hits

15 views
Skip to first unread message

Muhammad Sayed

unread,
Mar 21, 2022, 8:02:52 AM3/21/22
to SimpleCov
is there a way to define the coverage by minimum hits on a line ?
The use case is, when testing eager loading the files are loaded and the number of hits of each line is 1, this is misleading, because they are not covered really by tests
for example, testing a user model with
validates :email, presence: true, uniqueness: true
by the eager loading test, this will be covered by 1 line hit, althought it's not tested
Reply all
Reply to author
Forward
0 new messages