Hi, I found this message looking for an answer but unfortunately it did not get an answer. I am new to kotest and now run into the problem that I would like to display my own message when there is an error.
My example is
null shouldNotBe null
in this case I get a generic message
<null> should not equal <null>
This is not very helpful. I would get an error I write myself, e.g. “Property ‘test’ is null, although it shouldn’t have been”. I understand that the matcher does not know this, but as I know which item I added in there I could make the error message clearer.
How can I achieve this?
@sam this is exactly what I wanted, thank you so much 🙂
I would prefer the other message not to show at all, BUT this is good enough for me for now, many thanks