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

fix(deps): update dependency com.approvaltests:approvaltests to v24 #363

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 21, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.approvaltests:approvaltests (source) 23.1.0 -> 24.8.0 age adoption passing confidence

Release Notes

approvals/ApprovalTests.Java (com.approvaltests:approvaltests)

v24.8.0: XmlXomApprovals

Compare Source

Xom has support for emojies, so it can be a confinient way to use for xml that contains emojies.

    var expected = """
        <?xml version="1.0" encoding="UTF-8"?>
        <a>
          <b>😸 &amp; 🐶</b>
        </a>
        """;
    String minimizedXml = expected.replaceAll("\n", " ").replace("  ", "");
    XmlXomApprovals.verifyXml(minimizedXml, new Options().inline(expected));

We also allow you to create your own pretty printer when using Approvals.verify.

Or no pretty printing at all, then use

Approvals.verifyXml(xml, x -> x);

v24.7.0: AraxisMergeReporter and better Jackson support

Compare Source

Araxis Merge Reporter for MacOS #​172
JsonJacksonApprovals now accepts an ObjectMapper #​478

v24.6.0: Minor fixes

Compare Source

What's Changed

  • #​554 new constructor for MultiScrubber(Collection<Scrubber> scrubbers)
  • #​551 verifyJson to adhere to passed GsonBuilder while pretty printing
  • Better error/help message for ApprovalsDuplicateVerifyException

v24.5.0: Saver2 utilities

Compare Source

Convinience functions for creating Savers that take 2 parameters:

Saver<Tuple<Customer, String>> mailSaver = Saver2.create(mailServer::sendMessage);

We also believe we made approvlatests again compatible with JDK 8.

v24.4.0: Support for setting reporter in environment variables

Compare Source

See #​520

See the documentation here.

Thanks to @​FWest98 for this contribution!

v24.3.0: Minor Improvements to JsonApprovals

Compare Source

Fixes for
#​531 verifyAsJson() handles null LocalTimeDates.
#​479 verifyJson() accepts GsonBuilder

v24.2.0: InlineOptions.semiAutomaticWithPreviousApproved()

Compare Source

v24.1.0: Options.addReporter(reporter)

Compare Source

You can call addReporter(reporter) on Options and it will open both/all reporters on test failure.

v24.0.0: InlineOptions

Compare Source

BREAKING CHANGE

verify(result, options=Options().inline(expected, showCode=false))
verify(result, options=Options().inline(expected, showCode=true))

is now

verify(result, options=Options().inline(expected, InlineOptions.showCode(false)))
verify(result, options=Options().inline(expected))

New Features

You can now do InlineOptions.automatic() and InlineOptions.semiAutomatic().


Configuration

📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 18 0 0.28s
✅ BASH bash-exec 5 0 0.03s
✅ BASH shellcheck 2 0 0.11s
⚠️ BASH shfmt 5 1 0.01s
⚠️ CSHARP csharpier 1 1 1.45s
⚠️ CSHARP dotnet-format yes 1 1.14s
✅ CSHARP roslynator 1 0 17.66s
✅ CSS stylelint 1 0 1.84s
✅ DOCKERFILE hadolint 4 0 0.24s
✅ EDITORCONFIG editorconfig-checker 378 0 4.04s
✅ ENV dotenv-linter 1 0 0.01s
✅ GROOVY npm-groovy-lint 7 0 13.0s
✅ HTML djlint 2 0 1.03s
✅ HTML htmlhint 2 0 0.26s
✅ JAVA checkstyle 59 0 7.31s
✅ JSON jsonlint 31 0 0.23s
⚠️ JSON prettier 31 1 5.35s
✅ JSON v8r 31 0 83.05s
⚠️ MARKDOWN markdownlint 22 190 1.6s
✅ PYTHON bandit 1 0 1.0s
✅ PYTHON black 1 0 0.68s
✅ PYTHON flake8 1 0 0.48s
✅ PYTHON isort 1 0 0.36s
✅ PYTHON mypy 1 0 7.68s
✅ PYTHON ruff 1 0 0.04s
✅ REPOSITORY checkov yes no 21.24s
✅ REPOSITORY gitleaks yes no 2.04s
✅ REPOSITORY git_diff yes no 0.12s
✅ REPOSITORY kics yes no 54.96s
✅ REPOSITORY secretlint yes no 2.02s
✅ REPOSITORY syft yes no 3.48s
❌ REPOSITORY trivy yes 1 31.53s
✅ REPOSITORY trivy-sbom yes no 1.83s
✅ REPOSITORY trufflehog yes no 5.33s
✅ XML xmllint 3 0 0.02s
✅ YAML prettier 111 0 2.3s

See detailed report in MegaLinter reports

You could have same capabilities but better runtime performances if you request a new MegaLinter flavor.

MegaLinter is graciously provided by OX Security

@chgl chgl merged commit 962553e into master Oct 21, 2024
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant