Hi, is there an assertion library that nicely highlights diffs between expected and actual values? F...
s
Hi, is there an assertion library that nicely highlights diffs between expected and actual values? For instance when comparing two data classes
actual shouldEqual expected
. Currently I'm using Kluent but it just outputs the
toString()
values of both classes. If I want to find out which value(s) are actually different I have to do it manually.
๐Ÿ‘ 1
a
also curious about better diff i've been using reflection assert http://www.unitils.org/tutorial-reflectionassert.html forf comparing complex objects
m
AssertJ and itโ€™s recursive comparison. https://assertj.github.io/doc/#assertj-core-recursive-comparison
AssertJ is an incredible library
d
#atrium or #strikt ?
๐Ÿ‘ 1
Assertj is a bit harder to use with kotlin (at least as much as I had tried then...)