Skipping tests on condition
Use the annotation to execute or skip a specific test
@EnabledIf(
)
@Test
@EnabledIf("fileExistsCondition")
public void test_1() {
boolean fileExistsCondition() {
return Files.exists(Path.of("some-file.txt"));
}