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
Currently the
@EnabledOnOsand@DisabledOnOsannotations 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.@EnabledOnOsand@DisabledOnOs#5709As such it would make sense to make it possible to use the annotation with an arbitrary operating system. I.e:
Open question: How should the name be matched against
System.getProperty("os.name")? With.toLowerCase().equalsor.toLowerCase().contains?Deliverables
@EnabledOnOsand@DisabledOnOs