Open
Description
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:
- Decide what to do with
@IfProfileValue
[SPR-7754] #12410 Decide what to do with@IfProfileValue
- Introduce strategy for determining if a profile value is enabled for a particular test environment [SPR-4862] #9538 Introduce strategy for determining if a profile value is enabled for a particular test environment
- Allow overriding
@ActiveProfiles
in test classes with system property [SPR-8982] #13622 Allow overriding@ActiveProfiles
in test classes with system property SystemProfileValueSource
is 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 profiles
8 votes, 8 watchers