flipp-oss / deimos

Framework to work with Kafka, Avro and ActiveRecord
Other
60 stars 22 forks source link

Display diff with most recent message as well as closest message #8

Open dorner opened 5 years ago

dorner commented 5 years ago

Deimos::TestHelpers by default will print a diff of the closest message to the expected message. This often gets confused by differing fields. Often the thing we really want to see is a diff against the most recent message, as that tends to be the one tested. We should print the diffs for both of them (if they aren't the same message).