Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

allure-jsonunit

JsonUnit diff attachment integration for Allure Java.

Coordinates

io.qameta.allure:allure-jsonunit

dependencies {
    testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
    testImplementation("io.qameta.allure:allure-jsonunit")
}

Use

Use JsonPatchMatcher.jsonEquals(...) when comparing JSON payloads.

assertThat(actualJson, JsonPatchMatcher.jsonEquals(expectedJson));

Captured Data

  • JsonUnit comparison differences.
  • A rendered JSON diff attachment named JSON difference.

Notes

This module still uses module-local HTML rendering for JSON diffs. It is intentionally separate from the HTTP exchange attachment model.