Skip to content

Releases: approvals/ApprovalTests.Java

Inline reporter detects expected

21 Nov 16:35
Compare
Choose a tag to compare

Fixes a minor bug where you have code before expected for inline approvals

InlineJavaReporter uses tab/spaces

20 Nov 19:15
Compare
Choose a tag to compare
22.3.1

d updated markdown snippets

inline Approvals

20 Nov 18:23
96d82e0
Compare
Choose a tag to compare

TestUtils.displayFile fixed on MacOS

06 Nov 18:48
e649445
Compare
Choose a tag to compare

IntellijReporter support for Windows

23 Oct 17:29
Compare
Choose a tag to compare

when installed via Jetbrains Toolbox

IntellijReporter support for Linux

16 Oct 17:45
e185feb
Compare
Choose a tag to compare

must be installed via toolbox!

Remove deprecated api

12 Oct 22:19
Compare
Choose a tag to compare

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

12 Oct 21:13
Compare
Choose a tag to compare

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

09 Oct 17:55
Compare
Choose a tag to compare

On Mac, when using Jetbrains Toolbox, we now should detect your IntelliJ installation and launch the idea diff viewer.

Fixes to KDiff3

05 Oct 21:43
Compare
Choose a tag to compare

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