Releases: origin-energy/java-snapshot-testing
Releases · origin-energy/java-snapshot-testing
4.0.8
4.0.7
#patch: Fixes #162 - Stable formatting between Jackson 2.16 and earli…
4.0.6
#patch: Enable snapshot-testing in a superclass Tests can now use `Expect` defined in a superclass
4.0.5
#patch: #146 allow updateSnapshot=false for legacy compatibility (#150)
4.0.4
#patch: make it possible to skip `findAndRegisterModules` in JacksonS…
4.0.3
#patch: #145 make updating snapshots simpler (#146) - Allow snapshots to be updated by toggling `update-snapshot` property in `snapshot.properties`. - Deprecate the passing of system property `-PupdateSnapshot`. - Add some API deprecation logs for V5
4.0.2
#patch: Fixes #126 leading/trailing whitespace causing snapshot failu…
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 …