Releases: codedabble-dev/java-snapshot-testing
Releases · codedabble-dev/java-snapshot-testing
Release list
4.0.1
#patch: Restrict characters in snapshot name Fixes #122 Make '=', '[' and ']' characters illegal in snapshot name and scenario fields
4.0.0
#major: 4.0.0
Breaking changes for Serializers, Comparators & Reporters
- Now accept a Snapshot class as the argument
- Still have access to everything they had before via the getters
- Exposed lots more information for the serializer to customise the snapshot as desired
Snapshot Headers
- Users can now use custom headers via expect.header("A", "B").toMatchSnapshot(obj)
- These headers are serialized into the snapshot as a JSON Object
- Certain headers may be added as default in future versions
REGEX matching
- The Snapshot object is now parsed as a regular expression and key pieces of information are extracted
No more varargs
- Removed varargs param for `.toMatchSnapshot`. It now only supports a single argument.
Remove onSaveSnapshotFile() hook
- This made the file difficult to parse via a REGEX
3.4.0
#minor: Make Jackson Plugin unique in order to support Java9 modules …
3.3.9
#patch: #108 Remove module.info.class imported by shadowJar (#109)