Skip to content

Allow AbstractTestContextBootstrapper to provide default ContextConfigurationAttributes [SPR-13949] #18521

Closed
@spring-projects-issues

Description

@spring-projects-issues

Phil Webb opened SPR-13949 and commented

It's currently possible to use @BootstrapWith to indicate that a test should have a specific bootstrapper. We use this in Spring Boot to support annotations such as @WebIntegrationTest and many tests end up looking like this.

@RunWith(SpringRunner.class)
@WebIntegrationTest
@SpringApplicationConfiguration

Often the @SpringApplicationConfiguration annotation ends up being empty and just using the defaults. It would be nice if third-party frameworks could provide a default implementation of ContextConfigurationAttributes in such cases.


Issue Links:

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulestatus: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions