08/18/2020, 7:51 AM
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?
☑️ 1


08/18/2020, 8:38 AM


08/18/2020, 9:50 AM
@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
👍🏻 1