Torsten Krah opened SPR-11677 and commented
I've looked at the @IfProfileValue and @ActiveProfiles annotations, but neither does what I am searching for.
We are using the "spring.profiles.active" system property to activate different profiles, even at the test level -- e.g. "h2, default" or something else.
We have tests which are only for Oracle and should therefore only be run if the "oracle" profile is active, but I've found no way to express this on the test class itself.
A dedicated annotation would be nice to support this.
Affects: 4.0.3
Issue Links:
8 votes, 8 watchers
Torsten Krah opened SPR-11677 and commented
I've looked at the
@IfProfileValueand@ActiveProfilesannotations, but neither does what I am searching for.We are using the
"spring.profiles.active"system property to activate different profiles, even at the test level -- e.g."h2, default"or something else.We have tests which are only for Oracle and should therefore only be run if the
"oracle"profile is active, but I've found no way to express this on the test class itself.A dedicated annotation would be nice to support this.
Affects: 4.0.3
Issue Links:
@IfProfileValue[SPR-7754] #12410 Decide what to do with@IfProfileValue@ActiveProfilesin test classes with system property [SPR-8982] #13622 Allow overriding@ActiveProfilesin test classes with system propertySystemProfileValueSourceis not very compatible with the new 3.1 default system property profiles [SPR-8985] #13625 SystemProfileValueSource is not very compatible with the new 3.1 default system property profiles8 votes, 8 watchers