Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump approvaltests from 13.4.0 to 18.6.0 #125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 4, 2023

Bumps approvaltests from 13.4.0 to 18.6.0.

Release notes

Sourced from approvaltests's releases.

NormalizeSpacesScrubber

With this scrubber you can avoid test failures in the case that whitespace character was changed to another unicode character when displaying dates, for example https://bugs.openjdk.org/browse/JDK-8274768

This will display as

- | getTime("AM/PM")        | 12:00 AM | 
+ | getTime("AM/PM")        | 12:00 AM |

Custom Comparator

  • DateScrubber.getScrubberFor() now accepts http date header format
  • XStream dependency is now optional as it should be
  • Options now has a comparator if you wish to create a custom comparator #301

XStream JSON Approvals

Added support for converting to JSON via XStream. This is a nice utility for handling circular references in objects.

SimpleLogger handles threading better for tests

By default, when you call SimpleLogger.logToString() will now create an instance of it's logger per thread. This is particular useful when running tests in Intellij.

Query.skip and Query.take

Added skip() and take() functions to Query/Queryable objects

Query.skip and Query.take

Added skip() and take() functions to Query/Queryable objects

Query.skip and Query.take

Added skip() and take() functions to Query/Queryable objects

Support for dynamic tests with new naming approach

We deprecated JupiterApprovals.dynamicTest(String displayName, Action0 action0) and want you to instead use JupiterApprovalsdynamicTest(String displayName, Action1<Options> action1) which passes back a prepopulated options.

Support for jqwik and other test frameworks using @​Testable

Breaking Change

JUnit5Approvals has been renamed to JupiterApprovals.

New Feature

We now support the detection of @​Testable, meaning most tests that run in Junit 5 engine will be supported.

Approvals.NAMES

ExtraInformation.Approvals.txt

the old way

There is now a new way to add information to approval names. Previously the way to add additional information was

try (NamedEnvironment ne1 = NamerFactory.asOsSpecificTest()) { 
    try (NamedEnvironment ne2 = NamerFactory.asMachineNameSpecificTest()) { 
        Approvals.verify("hello, World!");
</tr></table> 

... (truncated)

Commits
  • e726e2a d updated markdown snippets
  • 809dfda F!! whitespace scrubber to fix backwards incompatible changes in jdk 20+ (dat...
  • 300f92d run tests on jdk 19, 20 and 21 early access
  • b6cd3e9 Bump camel-xstream from 3.20.2 to 3.20.3
  • fa47883 Bump jqwik from 1.7.2 to 1.7.3
  • ccf3007 Bump maven-surefire-plugin from 3.0.0-M9 to 3.0.0
  • 911711f Bump jettison from 1.5.3 to 1.5.4
  • e076045 a reformat code
  • d38a658 Bump actions/cache from 3.3.0 to 3.3.1
  • 152ddae d updated markdown snippets
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [approvaltests](https://github.com/approvals/ApprovalTests.Java) from 13.4.0 to 18.6.0.
- [Release notes](https://github.com/approvals/ApprovalTests.Java/releases)
- [Commits](approvals/ApprovalTests.Java@13.4.0...18.6.0)

---
updated-dependencies:
- dependency-name: com.approvaltests:approvaltests
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants