Skip to content

Create escape hatch for un-enumerated operating systems in @{Enabled,Disabled}OnOs #5721

Description

@mpkorstanje

Currently the @EnabledOnOs and @DisabledOnOs annotations work with an enum to indicate the operating system. While the number of times we've added an OS is small, this is not an enumerable set. And it would benefit users if they can disable tests on a specific OS without having to wait for a new release.

As such it would make sense to make it possible to use the annotation with an arbitrary operating system. I.e:

@DisabledOnOs(name = "AmongOS")
void test(){

}

Open question: How should the name be matched against System.getProperty("os.name")? With .toLowerCase().equals or .toLowerCase().contains?

Deliverables

  • Escape hatch in @EnabledOnOs and @DisabledOnOs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions