Closed HenrikPoulsen closed 5 months ago
Hi, can you please provide minimal reproducible example for it?
Hey, sorry for the slow reply. I found this issue when I was doing some heavy refactoring and sadly didn't think to look closer at how it was setup. I tried reproducing it at a later time, but didn't manage. I will close this ticket for now, if I do see it again I'll setup a repro immediately. Sorry for the noise
I was refactoring some of my code and had some tests failing even though I had correctly updating them. It was complaining that the method I was mocking hasn't been called when I ran
VerifyNoMoreInteractions()
.Turns out that the code was panicking due to having forgotten to pass in a new mock to the constructor for the thing being tested. So I would have expected the panic to bubble up instead of being eaten.
For the tests I'm using
Which is how the readme on this repo does it.
However if I change it to use the same reporter as the mockio tests
Then I get
It would be nice if the default
SetUp(t)
behaved more like the mock reporter so that one doesn't have to add it to every single test manually