fix(deps): update dependency com.approvaltests:approvaltests to v22 #210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
18.7.1
->22.3.3
Release Notes
approvals/ApprovalTests.Java (com.approvaltests:approvaltests)
v22.3.3
: Updating dependency to jakarta mailCompare Source
Closes issue #376
v22.3.2
: Inline reporter detects expectedCompare Source
Fixes a minor bug where you have code before expected for inline approvals
v22.3.1
: InlineJavaReporter uses tab/spacesCompare Source
v22.3.0
: inline ApprovalsCompare Source
https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/docs/how_to/InlineApprovals.md
https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/docs/explanations/InlineApprovalsWorkflow.md
v22.2.1
: TestUtils.displayFile fixed on MacOSCompare Source
as reported in #429
v22.2.0
: IntellijReporter support for WindowsCompare Source
when installed via Jetbrains Toolbox
v22.1.0
: IntellijReporter support for LinuxCompare Source
must be installed via toolbox!
v22.0.0
: Remove deprecated apiCompare Source
Minor breaking changes
Issue #376 made javax.mail optional
Removed deprecated api in JupiterApprovals
Moved TestUtils.displayEmail to EmailOpener.displayEmail
v21.2.0
: Easy reordering of JSON for consistent approvalsCompare Source
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
v21.1.0
: Improvements for IntelliJ reporters when using Jetbrains ToolboxCompare Source
On Mac, when using Jetbrains Toolbox, we now should detect your IntelliJ installation and launch the idea diff viewer.
v21.0.0
: Fixes to KDiff3Compare Source
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
v20.0.0
: Removal of EnvironmentAwareReporterCompare Source
This is a breaking change.
When you call
Reporter.report(received, approved)
it now returns if it was successful.This makes the java architecture more consistent with other implementations and allows us to determine when something should have worked but it didn't.
It should not affect you unless you've written a custom implementation of
ApprovalFailureReporter
.Information on why and how to upgrade can be found here.
v19.0.0
: Exceptions and Help messages on duplicate verify() calls.Compare Source
ApprovalTests only wants one call to
verify()
per test.There are ways to go around this but if you call
verify
where it would want the exact same file name twice, it will now throw an exception.This will make it easier for people to not be confused as most other testing frameworks allow you to put multiple assertions in the same test.
Backwards compatibility
There are some situations where you want to check that two different processes produce the same result.
Calling
verify
multiple times in the same test can be a way to do this.If you want to do that, we have provided two calls:
Approvals.settings().allowMultipleVerifyCallsForThisClass()
Approvals.settings().allowMultipleVerifyCallsForThisMethod()
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.