You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a test where I had a coVerify block and actually forgot to put the call to the method and the error you get is just a NullPointerException. You should detect this and provide a better failure message.
The text was updated successfully, but these errors were encountered:
I think the same would be true for every/coEvery since the NPE is coming from this line of Mockable.record:
return receiver!! to invocation!!
both values will be null if there are no calls to a mock. The simple solution is to throw a more intelligent exception/assertion in the try block after calling block
I have a test where I had a coVerify block and actually forgot to put the call to the method and the error you get is just a NullPointerException. You should detect this and provide a better failure message.
The text was updated successfully, but these errors were encountered: