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

Support @ActiveProfiles at method level [SPR-9338] #13977

Open
spring-projects-issues opened this issue Apr 23, 2012 · 3 comments
Open

Support @ActiveProfiles at method level [SPR-9338] #13977

spring-projects-issues opened this issue Apr 23, 2012 · 3 comments
Labels
in: test Issues in the test module type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Apr 23, 2012

Eugen Paraschiv opened SPR-9338 and commented

It would be extremely useful if @ActiveProfiles were supported for both methods as well as entire classes; this would enable much more granular support for switching between profiles (without needing to create an new test class) which is useful for some specific use cases of profiles (where this kind of granularity makes perfect sense).


Affects: 3.1 GA

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented May 11, 2012

Chris Beams commented

Interesting idea. Sam, perhaps you considered this at some point? At a glance, I don't see a reason why it couldn't be supported. It would of course require creating a new ApplicationContext for any methods so annotated, but we already have precedent for that with @DirtiesContext.

Sam can weigh in about feasibility here, but as I just mentioned in #12524, this would also probably make for a good pull request if you're interested in taking a shot at it. Here's the link to the contributor guidelines again.

@spring-projects-issues
Copy link
Collaborator Author

Chris Beams commented

Assigning to you Sam; see my previous comment.

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Jul 13, 2016

Sam Brannen commented

This is closely related to #16647.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants