Skip to content

Bump com.approvaltests:approvaltests from 18.7.1 to 31.1.0 - #197

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/maven/com.approvaltests-approvaltests-31.1.0
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/maven/com.approvaltests-approvaltests-31.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor

Bumps com.approvaltests:approvaltests from 18.7.1 to 31.1.0.

Release notes

Sourced from com.approvaltests:approvaltests's releases.

Failing approvals print to the console for AI coding agents

When tests run under an AI coding agent (Claude Code, Codex, Cursor, Gemini CLI, opencode, ...), a failing approval now prints the approved/received paths, an approve command, and both files' contents to standard out instead of opening a diff tool.

https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/docs/reference/AiCodingAgentReporter.md

  • Detected via environment variables (CLAUDECODE, CODEX_SANDBOX, CURSOR_AGENT, GEMINI_CLI, OPENCODE, AI_AGENT, APPROVAL_TESTS_AGENT, ...). Set one to 0/false to opt out.
  • APPROVAL_TESTS_USE_REPORTER still takes precedence.
  • Can be used directly: @​UseReporter(AiCodingAgentReporter.class)

Also:

  • DateScrubber supports java.util.Date with a GMT offset timezone (e.g. GMT-08:00)
  • TemplatedCustomNamer

Environmental Reporters now require fully qualified names

https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/docs/how_to/ConfigureReporters.md#method-4-environment-variables

Fix diff tool detection on Java 25

Fixed diff reporter availability detection for empty program paths. This prevents IntelliJReporter from being selected on Java 25 when no JetBrains IDE is running.

Fixes #800.

Can disable script downloads on CI

export APPROVALTESTS_DISABLE_SCRIPT_DOWNLOADS=1

https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/docs/how_to/DisableScriptDownloads.md

Breaking Change: Removing obsolete features

Removed:

  • LegacyApprovals
  • MethodExecutionPath
  • ObjectUtils.move()

These classes are obsolete since Java 8. Instead use CombinationApprovals and Java lambdas.

It is hard to know what is obsolete on a public API with no telemetry. If you feel we have made an important error, please reach out.

Breaking Change: move SQL approvals to SqlApprovals

We have moved SQL-specific APIs from Approvals to a separate class, SqlApprovals.

This will break the following calls:

- Approvals.verify(ResultSet)
+ SqlApprovals.verify(ResultSet)
- Approvals.verify(SqlLoader)
+ SqlApprovals.verify(SqlLoader)

... (truncated)

Commits
  • ae0c5d5 . d Document AiCodingAgentReporter
  • b0b0337 ! F Add AiCodingAgentReporter to print failures for AI coding agents
  • f2e6825 ! B DateScrubber supports java.util.Date with GMT offset timezone (e.g. GMT-0...
  • 63420e3 . t Use java.time in testFebruaryAndDaylightSavingsTime to avoid global timez...
  • 642dfa0 - r Bump the jackson group across 1 directory with 5 updates
  • b973bfc - r Bump tools.jackson.core:jackson-databind from 3.2.4 to 3.3.0
  • 10bf691 - r Bump org.apache.commons:commons-lang3 from 3.21.0 to 3.22.0
  • 4034197 . e Bump jdx/mise-action from 5.2.6 to 5.2.7
  • a84fb15 . e Bump jdx/mise-action from 5.2.4 to 5.2.6
  • 8cf3945 . d Link to ApprovalTests.Java.Minimizer from the README
  • 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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 [com.approvaltests:approvaltests](https://github.com/approvals/ApprovalTests.Java) from 18.7.1 to 31.1.0.
- [Release notes](https://github.com/approvals/ApprovalTests.Java/releases)
- [Changelog](https://github.com/approvals/ApprovalTests.Java/blob/master/internal_documentation/release.md)
- [Commits](approvals/ApprovalTests.Java@18.7.1...31.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Nov 23, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #198.

@dependabot dependabot Bot closed this Nov 24, 2026
@dependabot
dependabot Bot deleted the dependabot/maven/com.approvaltests-approvaltests-31.1.0 branch November 24, 2026 02:03
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 java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants