-
Hi all, I am new to Mokkery and like the ease of use so far! To make my tests really strict I would like to achieve the following.
Even though I call a method that invokes first and second mock, the test passes. I expect it to fail as a second dependency is called but this method is not being verified. Is there any way to achieve this behaviour? Many thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
lupuuss
Jul 12, 2024
Replies: 1 comment 3 replies
-
Hi! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I know what you mean. However, implementing this check automatically is problematic. For a reference, Mockk acts the same in given scenario. Maybe with compiler plugin capabilities it could be possible, but it's not easy to do and probably error-prone.
Also, you can eliminate partially the boilerplate with
AfterTest
: