Neel Kamath06/19/2020, 3:35 AM
test fails. Is there any way it could be pretty printed so that I needn't spend minutes manually formatting it every time to see the diff? I think I saw Gradle pretty print a
dataClass1 shouldBe dataClass2
or something I had once. Sorry if this is unrelated to Kotest. I'm unsure whether this is issue is from Kotest, Gradle, JUnit, etc.
LeoColman06/19/2020, 4:46 AM
Neel Kamath06/19/2020, 6:10 AM
). It doesn't work for collections of data classes (e.g.,
MyClass shouldBe MyClass
. It doesn't work for different data classes (e.g.,
listOf(MyClass1, MyClass2) shouldBe listOf(MyClass1, MyClass2)
). Obviously, comparing different data classes would always fail the test. However, I believe this is still an issue because Kotest still allows it to compile, and the reader of the test report doesn't know it's a different data class until it's been somewhat formatted.
sam06/19/2020, 8:03 PM