Skip to content

Releases: origin-energy/java-snapshot-testing

4.0.8

22 Apr 23:01
916db6f
Compare
Choose a tag to compare
#patch: Fixes #165 - regex not working with headers and JSON snapshot…

4.0.7

14 Dec 21:10
11407b4
Compare
Choose a tag to compare
#patch: Fixes #162 - Stable formatting between Jackson 2.16 and earli…

4.0.6

22 Apr 08:50
e9521ab
Compare
Choose a tag to compare
#patch: Enable snapshot-testing in a superclass

Tests can now use `Expect` defined in a superclass

4.0.5

16 Feb 09:12
ddfd6ee
Compare
Choose a tag to compare
#patch: #146 allow updateSnapshot=false for legacy compatibility (#150)

4.0.4

12 Feb 02:33
9797800
Compare
Choose a tag to compare
#patch: make it possible to skip `findAndRegisterModules` in JacksonS…

4.0.3

29 Jan 09:23
194f256
Compare
Choose a tag to compare
#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

10 Dec 22:38
c477afd
Compare
Choose a tag to compare
#patch: Fixes #126 leading/trailing whitespace causing snapshot failu…

4.0.1

26 Nov 10:40
cee4af4
Compare
Choose a tag to compare
#patch:  Restrict characters in snapshot name

Fixes #122 
Make '=', '[' and ']' characters illegal in snapshot name and scenario fields

4.0.0

06 Nov 05:04
4710144
Compare
Choose a tag to compare
#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

29 Oct 04:04
08f207e
Compare
Choose a tag to compare
#minor: Make Jackson Plugin unique in order to support Java9 modules …