Skip to content

Releases: skuzzle/snapshot-tests

1.5.0

16 Nov 12:47
Compare
Choose a tag to compare
  • #23: Allow to configure strictness of JSON comparison
  • #34: Support for HTML snapshots
  • #36: Throw proper AssertionError if actual snapshot input is null
  • #37: Improve rendering of huge diffs by leaving out large unchanged parts
  • #39: Detect incomplete/illegal DSL usages
  • #40: Allow to gracefully disable snapshot assertions
  • Build against JUnit 5.9.1 (coming from 5.8.2)
  • Clean up dependencies

Maven Central coordinates for this release:

BOM Artifact

⚠ The published BOM is currently broken. See Issue #42 ⚠

Manages the versions of all modules in case you are using multiple in your project

Maven Central

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-bom</artifactId>
    <version>1.5.0</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.5.0"))

Artifacts

If you only need text based snapshots:

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-core</artifactId>
    <version>1.5.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-core:1.5.0'
testImplementation("de.skuzzle.test:snapshot-tests-core:1.5.0")

If you need json based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jackson</artifactId>
    <version>1.5.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jackson:1.5.0'
testImplementation("de.skuzzle.test:snapshot-tests-jackson:1.5.0")

If you need xml based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jaxb</artifactId>
    <version>1.5.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jaxb:1.5.0'
testImplementation("de.skuzzle.test:snapshot-tests-jaxb:1.5.0")

If you need HTML based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-html</artifactId>
    <version>1.5.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-html:1.5.0'
testImplementation("de.skuzzle.test:snapshot-tests-html:1.5.0")

Experimental

Directory Params

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-directory-params</artifactId>
    <version>1.5.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-directory-params:1.5.0'
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.5.0")

Object normalization

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-normalize</artifactId>
    <version>1.5.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-normalize:1.5.0'
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.5.0")

1.4.0

13 Sep 07:47
Compare
Choose a tag to compare
  • #25: Improve exception messages for comparison failures
  • #27: Allow to customize whitespace behavior for text comparison
  • #28: Unify static constructors of all StructuredDataProviders (see Deprecations below)

Deprecations

  • Deprecate XmlSnapshot.inferJaxbContext() in favor of XmlSnapshot.xml()
  • Deprecate XmlSnapshot.with(JAXBContext) in favor of XmlSnapshot.xml().withJAXBContext(JAXBContext)
  • Deprecate JsonSnapshot.withDefaultObjectMapper() in favor of JsonSnapshot.json()
  • Deprecate JsonSnapshot.withObjectMapper(ObjectMapper) in favor of JsonSnapshot.json(ObjectMapper)

Maven Central coordinates for this release:

BOM Artifact

Manages the versions of all modules in case you are using multiple in your project

Maven Central

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-bom</artifactId>
    <version>1.4.0</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.4.0"))

Artifacts

If you only need text based snapshots:

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-core</artifactId>
    <version>1.4.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-core:1.4.0'
testImplementation("de.skuzzle.test:snapshot-tests-core:1.4.0")

If you need json based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jackson</artifactId>
    <version>1.4.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jackson:1.4.0'
testImplementation("de.skuzzle.test:snapshot-tests-jackson:1.4.0")

If you need xml based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jaxb</artifactId>
    <version>1.4.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jaxb:1.4.0'
testImplementation("de.skuzzle.test:snapshot-tests-jaxb:1.4.0")

Experimental

Directory Params

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-directory-params</artifactId>
    <version>1.4.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-directory-params:1.4.0'
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.4.0")

Object normalization

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-normalize</artifactId>
    <version>1.4.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-normalize:1.4.0'
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.4.0")

1.3.0

02 May 13:42
Compare
Choose a tag to compare
  • #9: Do not allow null snapshots anymore
  • #24: Only create snapshot directory if necessary
  • Simple API to specify custom rules using XPath for XML comparison
  • Change: Custom json matchers are only tested against the new actual result and not against the persisted snapshot anymore
  • Add convenience method TestFile.asText() which defaults to use UTF-8 as file encoding

Experimental

  • Fix: object traversal failed on primitive arrays
  • Fix: serious bug in ObjectMemberAction.replaceConsistently
  • Add: new simpler overload of ObjectMemberAction.replaceConsistently
  • Add: new package for string normalization

Maven Central coordinates for this release:

BOM Artifact

Manages the versions of all modules in case you are using multiple in your project

Maven Central

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-bom</artifactId>
    <version>1.3.0</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.3.0"))

Artifacts

If you only need text based snapshots:

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-core</artifactId>
    <version>1.3.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-core:1.3.0'
testImplementation("de.skuzzle.test:snapshot-tests-core:1.3.0")

If you need json based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jackson</artifactId>
    <version>1.3.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jackson:1.3.0'
testImplementation("de.skuzzle.test:snapshot-tests-jackson:1.3.0")

If you need xml based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jaxb</artifactId>
    <version>1.3.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jaxb:1.3.0'
testImplementation("de.skuzzle.test:snapshot-tests-jaxb:1.3.0")

Experimental

Directory Params

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-directory-params</artifactId>
    <version>1.3.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-directory-params:1.3.0'
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.3.0")

Object normalization

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-normalize</artifactId>
    <version>1.3.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-normalize:1.3.0'
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.3.0")

1.2.3

24 Mar 12:49
Compare
Choose a tag to compare

Note: When running your tests with this version for the first time, you will see that your snapshot files are being
changed because we introduced a new header field. You can and safely check in these changes into your SCM.

  • Fix a regression introduced with 1.2.2 where the framework ends up in unrecoverable condition after a snapshot test failed
  • Remove Target ElementType.METHOD from @EnableSnapshotTests

Maven Central coordinates for this release:

BOM Artifact

Manages the versions of all modules in case you are using multiple in your project

Maven Central

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-bom</artifactId>
    <version>1.2.3</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.2.3"))

Artifacts

If you only need text based snapshots:

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-core</artifactId>
    <version>1.2.3</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-core:1.2.3'
testImplementation("de.skuzzle.test:snapshot-tests-core:1.2.3")

If you need json based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jackson</artifactId>
    <version>1.2.3</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jackson:1.2.3'
testImplementation("de.skuzzle.test:snapshot-tests-jackson:1.2.3")

If you need xml based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jaxb</artifactId>
    <version>1.2.3</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jaxb:1.2.3'
testImplementation("de.skuzzle.test:snapshot-tests-jaxb:1.2.3")

Experimental

Directory Params

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-directory-params</artifactId>
    <version>1.2.3</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-directory-params:1.2.3'
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.2.3")

Object normalization

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-normalize</artifactId>
    <version>1.2.3</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-normalize:1.2.3'
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.2.3")

1.2.2

24 Mar 08:36
Compare
Choose a tag to compare

Note: When running your tests with this version for the first time, you will see that your snapshot files are being
changed because we introduced a new header field. You can and safely check in these changes into your SCM.

  • Improve orphan detection to report less false positives
  • Multiple JavaDoc improvements
  • Improve and simplify internal interface and test framework integration

Maven Central coordinates for this release:

BOM Artifact

Manages the versions of all modules in case you are using multiple in your project

Maven Central

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-bom</artifactId>
    <version>1.2.2</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.2.2"))

Artifacts

If you only need text based snapshots:

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-core</artifactId>
    <version>1.2.2</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-core:1.2.2'
testImplementation("de.skuzzle.test:snapshot-tests-core:1.2.2")

If you need json based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jackson</artifactId>
    <version>1.2.2</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jackson:1.2.2'
testImplementation("de.skuzzle.test:snapshot-tests-jackson:1.2.2")

If you need xml based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jaxb</artifactId>
    <version>1.2.2</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jaxb:1.2.2'
testImplementation("de.skuzzle.test:snapshot-tests-jaxb:1.2.2")

Experimental

Directory Params

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-directory-params</artifactId>
    <version>1.2.2</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-directory-params:1.2.2'
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.2.2")

Object normalization

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-normalize</artifactId>
    <version>1.2.2</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-normalize:1.2.2'
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.2.2")

1.2.1

22 Mar 08:28
Compare
Choose a tag to compare
  • Detect whether a test method had been renamed and update a snapshot's header information (works in some cases.
    In other cases, a new snapshot might be taken and the existing one becomse an orphan).
  • Fix and improve orphan detection (especially when using custom snapshot names and/or custom snapshot directories)

Maven Central coordinates for this release:

BOM Artifact

Manages the versions of all modules in case you are using multiple in your project

Maven Central

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-bom</artifactId>
    <version>1.2.1</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.2.1"))

Artifacts

If you only need text based snapshots:

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-core</artifactId>
    <version>1.2.1</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-core:1.2.1'
testImplementation("de.skuzzle.test:snapshot-tests-core:1.2.1")

If you need json based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jackson</artifactId>
    <version>1.2.1</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jackson:1.2.1'
testImplementation("de.skuzzle.test:snapshot-tests-jackson:1.2.1")

If you need xml based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jaxb</artifactId>
    <version>1.2.1</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jaxb:1.2.1'
testImplementation("de.skuzzle.test:snapshot-tests-jaxb:1.2.1")

Experimental

Directory Params

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-directory-params</artifactId>
    <version>1.2.1</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-directory-params:1.2.1'
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.2.1")

Object normalization

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-normalize</artifactId>
    <version>1.2.1</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-normalize:1.2.1'
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.2.1")

1.2.0

15 Mar 09:06
Compare
Choose a tag to compare
  • #16: Add better API for customizing json comparisons.
  • #21: Throw IllegalArgumentException instead of NullPointerException when validating parameters.
  • Automatically wrap objects in JAXBElement when they are not annotated with @XmlRootObject.
  • TestFile injected in parameterized tests now has a sibling(String) and siblingWithExtension(String) method.
  • Added @DirectoriesFrom annotation which iterates directories and injects them as TestDirectory into test methods.
  • Added filter attribute to the @FilesFrom annotation to specify a PathFilter implementation. Allows for more fine grained filtering control.
  • Experimental support for changing the snapshot directory per assertion with snapshot.in(pathToDirectory).assertThat(...).

Maven Central coordinates for this release:

BOM Artifact

Manages the versions of all modules in case you are using multiple in your project

Maven Central

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-bom</artifactId>
    <version>1.2.0</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.2.0"))

Artifacts

If you only need text based snapshots:

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-core</artifactId>
    <version>1.2.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-core:1.2.0'
testImplementation("de.skuzzle.test:snapshot-tests-core:1.2.0")

If you need json based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jackson</artifactId>
    <version>1.2.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jackson:1.2.0'
testImplementation("de.skuzzle.test:snapshot-tests-jackson:1.2.0")

If you need xml based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jaxb</artifactId>
    <version>1.2.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jaxb:1.2.0'
testImplementation("de.skuzzle.test:snapshot-tests-jaxb:1.2.0")

Experimental

Directory Params

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-directory-params</artifactId>
    <version>1.2.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-directory-params:1.2.0'
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.2.0")

Object normalization

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-normalize</artifactId>
    <version>1.2.0</version>
    <scope>test</scope>
</dependency>
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.2.0")

1.1.0

17 Feb 12:25
Compare
Choose a tag to compare
  • #5: Improve support for parameterized tests (@ParameterizedTest)
  • #15: Internal refactoring to decouple core from JUnit dependency
  • #8: Way more sophisticated orphan detection
  • Deprecate EnableSnapshotTests.forceUpdateSnapshots in favor of new @ForceUpdateSnapshots annotation
  • Orphaned files are not deleted any more when forceUpdateSnapshots is enabled
  • @DeleteOrphanedSnapshots annotation can be placed on the test class in order to delete orphaned files

Maven Central coordinates for this release:

BOM Artifact

Manages the versions of all modules in case you are using multiple in your project

Maven Central

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-bom</artifactId>
    <version>1.1.0</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.1.0"))

Artifacts

If you only need text based snapshots:

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-core</artifactId>
    <version>1.1.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-core:1.1.0'
testImplementation("de.skuzzle.test:snapshot-tests-core:1.1.0")

If you need json based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jackson</artifactId>
    <version>1.1.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jackson:1.1.0'
testImplementation("de.skuzzle.test:snapshot-tests-jackson:1.1.0")

If you need xml based snapshots (includes -core):

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jaxb</artifactId>
    <version>1.1.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jaxb:1.1.0'
testImplementation("de.skuzzle.test:snapshot-tests-jaxb:1.1.0")

Experimental

Directory Params

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-directory-params</artifactId>
    <version>1.1.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-directory-params:1.1.0'
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.1.0")

Object normalization

Maven Central JavaDoc

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-normalize</artifactId>
    <version>1.1.0</version>
    <scope>test</scope>
</dependency>
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.1.0")

1.0.0

10 Feb 12:10
Compare
Choose a tag to compare

Maven Central JavaDoc

This is the first major release! Please watch out for ApiGuardian @API annotation when using public API. Some
classes/methods are still marked as experimental and thus elligible to change during a minor release.

  • Add ApiGuardian annotations to all public API
  • #10 Snapshots can be updated by passing -DforceUpdateSnapshots to the JVM
  • Allow to customize the JSONComparator instance when structurally comparing JSON snapshots
  • Improve JavaDoc

Maven Central coordinates for this release:

BOM Artifact

Manages the versions of all modules in case you are using multiple in your project

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-bom</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>
testImplementation(platform("de.skuzzle.test:snapshot-tests-bom:1.0.0"))

Artifacts

If you only need text based snapshots:

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-core</artifactId>
    <version>1.0.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-core:1.0.0'
testImplementation("de.skuzzle.test:snapshot-tests-core:1.0.0")

If you need json based snapshots (includes -core):

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jackson</artifactId>
    <version>1.0.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jackson:1.0.0'
testImplementation("de.skuzzle.test:snapshot-tests-jackson:1.0.0")

If you need xml based snapshots (includes -core):

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jaxb</artifactId>
    <version>1.0.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jaxb:1.0.0'
testImplementation("de.skuzzle.test:snapshot-tests-jaxb:1.0.0")

Experimental

Directory Params

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-directory-params</artifactId>
    <version>1.0.0</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-directory-params:1.0.0'
testImplementation("de.skuzzle.test:snapshot-tests-directory-params:1.0.0")

Object normalization

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-normalize</artifactId>
    <version>1.0.0</version>
    <scope>test</scope>
</dependency>
testImplementation("de.skuzzle.test:snapshot-tests-normalize:1.0.0")

0.0.7

08 Feb 11:46
Compare
Choose a tag to compare

Maven Central JavaDoc

  • Allow to customize the Xml-Unit assertion via XmlSnapshot.compareUsing(Consumer<CompareAssert>)
  • Restructure modules
  • Experimental normalization API

Maven Central coordinates for this release:

BOM Artifact

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-bom</artifactId>
    <version>0.0.7</version>
    <scope>test</scope>
</dependency>
testImplementation(platform('de.skuzzle.test:snapshot-tests-bom:0.0.7'))

Artifacts

If you only need text based snapshots:

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-core</artifactId>
    <version>0.0.7</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-core:0.0.7'

If you need json based snapshots (includes -core):

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jackson</artifactId>
    <version>0.0.7</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jackson:0.0.7'

If you need xml based snapshots (includes -core):

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-jaxb</artifactId>
    <version>0.0.7</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-jaxb:0.0.7'

Experimental

Directory Params

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-directory-params</artifactId>
    <version>0.0.7</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-directory-params:0.0.7'

Object normalization

<dependency>
    <groupId>de.skuzzle.test</groupId>
    <artifactId>snapshot-tests-normalize</artifactId>
    <version>0.0.7</version>
    <scope>test</scope>
</dependency>
testImplementation 'de.skuzzle.test:snapshot-tests-normalize:0.0.7'