Releases: approvals/ApprovalTests.Java
Inline reporter detects expected
Fixes a minor bug where you have code before expected for inline approvals
InlineJavaReporter uses tab/spaces
22.3.1 d updated markdown snippets
inline Approvals
TestUtils.displayFile fixed on MacOS
as reported in #429
IntellijReporter support for Windows
when installed via Jetbrains Toolbox
IntellijReporter support for Linux
must be installed via toolbox!
Remove deprecated api
Minor breaking changes
Issue #376 made javax.mail optional
Removed deprecated api in JupiterApprovals
Moved TestUtils.displayEmail to EmailOpener.displayEmail
Easy reordering of JSON for consistent approvals
The Problem:
JSON does not define an order to the fields.
This can make approving JSON inconsistent as ApprovalTests requires consistent results.
The Solution:
JsonApprovals.verifyJson(json)
now has an overload:
JsonApprovals.verifyJson(json, reorderJson: true)
which will alphabetically sort the JSON in the result.
By default it still does not reorder the JSON.
Extras
You can call the reordering directly with
JsonUtils.reorderFields(json)
This fixes #422
Improvements for IntelliJ reporters when using Jetbrains Toolbox
On Mac, when using Jetbrains Toolbox, we now should detect your IntelliJ installation and launch the idea diff viewer.
Fixes to KDiff3
Added KDiff3 Linux reporter.
Minor breaking changes
KDiff3Reporter has been moved to KDiff3MacReporter, KDiff3WindowsReporter as appropriate.
We also created a generic KDiff3 reporter that will work on all three systems.
Closes issue #412