Skip to content

Introduce annotation to disable test based on active Spring profile [SPR-11677] #16300

Open
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions