Homepage | https://michael-kutz.de |
Gravatar | https://gravatar.com/michakutz |
Homepage | https://michael-kutz.de |
Gravatar | https://gravatar.com/michakutz |
๐ ApproveJ v0.9.3 is out!
๐
/๐ introduces 16 new pre-defined Scrubbers for date/time strings
๐ fixes broken parsing if a date/time pattern contained a square bracket within an optional part
๐ https://github.com/mkutz/ApproveJ/releases/tag/v0.9.3
#approvaltesting #snapshottesting #java #kotlin #testing #jvm
๐ ApproveJ 0.8.6 was just published
๐๏ธ adds new review mechanism to automatically open a diff/merge tool if needed
The program for the @AgileTDZone is outโฆ
โฆand I'm really happy to be in it as a speaker ๐
This year I'm going to give my brand new talk on documentation. "WTFM: Whereโs the F****** Manualโ" is about
๐ฎโ๐จ understanding why documentation is hard,
๐ learning a systematic approach to know what to document when and in what form,
๐ make documentation a more rewarding and even fun activity.
https://agiletestingdays.com/2025/session/wtfm-wheres-the-f-manual/
๐ ApproveJ 0.8 was just released
๐ผ๏ธ adds support TestNG and Spock in addition to JUnit 5
๐ fixes ObjectPrinter running into a StackOverflowError when printing Enums
๐งน removes deprecated instants and date Scrubbers
๐ ApproveJ 0.7.1 is out
๐๏ธ/๐ `dateTimeFormat` scrubber for any date/time format defined by a date/time format string (e.g. "yyyy-MM-dd" or "HH'h' mm").
The new scrubber will replace the current `instants` and `dates` scrubbers.
@joschi I wasn't aware of that one tbh. I used https://github.com/approvals/ApprovalTests.java so far and had some issues with the API.
I'd say the approach of Java Snapshot Testing's API looks quite similar at first glance.
The concept of scrubbing seems to be missing, though.
Also, ApproveJ has a slightly different approach to how and where to store the snapshots.
Certainly, ApproveJ is less mature, right now.
Again, that's an at first glance comparison.
ApproveJ is a new implementation of Approval Testing for the JVM. It provides a fluent API and is highly customizable.
Check it out
๐ approvej.org
Approval testing can help a lot in these cases.
It simply takes a complex object, prints it into a string representation, and stores that in a file.
If the user approves it (by renaming the file), the test is considered green as long as the code produces the same string.
You can than use a diff tool to figure out what has changed and if that change was intended or is actually a problem.