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 at main · allure-framework/allure-java

Expand file tree

/

allure-jsonunit

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

allure-jsonunit

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 

README.md

Outline

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 01402503 — 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.