Skip to content

Document tips to avoid issues with ignored default context configuration in tests #36392

@sbrannen

Description

@sbrannen

Overview

In Spring Framework 7.1, the TestContext Framework will reliably detect all implicit default context configuration within the type hierarchy or enclosing class hierarchy (for @Nested test classes) above a given test class; however, test suites may encounter failures once we make that switch in behavior (see #31456 (comment)).

In order to help development teams prepare for the switch in 7.1, we will log a warning whenever we detect default context configuration that is currently ignored (see #36390).

However, that log message should link to external documentation which contains further details on how to address such issues, and this GitHub issues aims to address that.

Related Issues

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions