GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — allure-java/allure-jsonunit/README.md at main · MohabMohie/allure-java

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
46 lines (32 loc) · 1.13 KB
/

README.md

Copy path

File metadata and controls

46 lines (32 loc) · 1.13 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

allure-jsonunit

JsonUnit diff attachment integration for Allure Java.

Use this module when your tests compare JSON payloads with JsonUnit and you want readable JSON differences attached to Allure Report.

Supported Versions

  • Allure Java 3.x requires Java 17 or newer.
  • This module targets JsonUnit 5.x.
  • The current build validates against JsonUnit 5.1.2.

Installation

Gradle:

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

Maven, with allure-bom imported in dependency management:

<dependency>
    <groupId>io.qameta.allure</groupId>
    <artifactId>allure-jsonunit</artifactId>
    <scope>test</scope>
</dependency>

Setup

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

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

Report Output

  • JsonUnit comparison differences.
  • A rendered JSON diff attachment named JSON difference.
  • Failed assertions keep their normal assertion failure status and include the diff as supporting evidence.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.