sam
09/26/2021, 3:13 PMEmil Kantis
09/26/2021, 4:16 PMEmil Kantis
09/26/2021, 4:20 PMsam
09/26/2021, 4:25 PMsam
09/26/2021, 4:25 PMsam
09/26/2021, 4:25 PMEmil Kantis
09/26/2021, 4:26 PMsam
09/26/2021, 4:26 PMJim
09/26/2021, 7:34 PMsam
09/26/2021, 7:45 PMEmil Kantis
09/26/2021, 8:23 PMEmil Kantis
09/26/2021, 8:24 PMexpected was <[ { ... }]>, actual was <[ { ... }]>
format? 🤔sam
09/26/2021, 8:25 PMsam
09/26/2021, 8:25 PMsam
09/26/2021, 8:25 PMsam
09/26/2021, 8:25 PMEmil Kantis
09/26/2021, 8:26 PMEmil Kantis
09/26/2021, 8:29 PMsam
09/26/2021, 8:29 PMEmil Kantis
09/26/2021, 9:07 PMWe currently show expected was .... actual was .... but for large json its really difficult to see where they differ (edited)Was this when using
shouldMatchJson
or shouldEqualJson
, (or their underlying matchers)? just asking since i saw you used matchJson
in your PR which would not print any help other than expected vs actualEmil Kantis
09/26/2021, 9:07 PMtest("real world json without field") {
val a = this::class.java.getResourceAsStream("/shopify.json").bufferedReader().readText()
val b = this::class.java.getResourceAsStream("/shopify_without_field.json").bufferedReader().readText()
shouldFail {
a shouldEqualJson b
}.message.shouldStartWith(
"""At 'products.[0].variants.[0]' object was missing expected field(s) [sku]
sam
09/26/2021, 9:21 PMsam
09/26/2021, 9:21 PMEmil Kantis
09/26/2021, 9:27 PM