-
Couldn't load subscription status.
- Fork 38.8k
Open
Labels
in: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement
Milestone
Description
Justin Knowles opened SPR-14378 and commented
@TestPropertySource allows you to set test-suite / class-level properties, but I want test-level properties so I can test drive classes with @ConditionalOnProperty and @Value(${var:default}) type annotations for correct behavior.
I have considered creating separate test suites for each test, but that seems unnatural. I currently manually manage the context within the test to validate the behavior.
Issue Links:
- Support @ActiveProfiles at method level [SPR-9338] #13977 Support
@ActiveProfilesat method level - Support @ContextConfiguration at method level [SPR-12031] #16647 Support
@ContextConfigurationat method level
8 votes, 14 watchers
mhewedy, netmikey, OldIMP, firatkucuk, MadJlzz and 109 more
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement