Vladyslav Sitalo
09/24/2020, 7:35 PMclearInvocations
in mockk? (clear invocation log without resetting the stubbing)thanksforallthefish
09/25/2020, 5:41 AMclearAllMocks(answers = false)
should do what you ask. have a look at the other options for clearAllMocks
as wellVladyslav Sitalo
09/27/2020, 10:59 PMLukas K-G
09/28/2020, 5:45 AMclearMocks
call with the same answers= false
, which requires you to pass all mocks that should be cleared. This is a bit more forgiving when one day you want to run your tests in parallel.