truthish
truthish copied to clipboard
A Kotlin multiplatform unit testing library inspired by / similar to Google Truth.
Currently, all the assertThat methods have assertWithMessage versions. assertThrows is kind of special and I don't think we can do quite the same thing, but there should be some way...
Hi, Please add a `contract` such that if `isInstanceOf` succeeded, there'd be no need to cast the object for additional assertions. Thanks.
One dev using Truthish pointed out you can write a test like this: ```kotlin class Blah { override fun toString(): String = ".base-style" } @Test fun test() { val blah...
External comment from a dev: --- Assertion frameworks often provide a way to combine multiple assertions into a single one. For example, with Kotest: ```kotlin assertSoftly(Person("foo", 12)) { name shouldBe...