JsonUnit diff attachment integration for Allure Java.
io.qameta.allure:allure-jsonunit
dependencies {
testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
testImplementation("io.qameta.allure:allure-jsonunit")
}Use JsonPatchMatcher.jsonEquals(...) when comparing JSON payloads.
assertThat(actualJson, JsonPatchMatcher.jsonEquals(expectedJson));- JsonUnit comparison differences.
- A rendered JSON diff attachment named
JSON difference.
This module still uses module-local HTML rendering for JSON diffs. It is intentionally separate from the HTTP exchange attachment model.