JUnit: support ignoring all tests in a class

This commit is contained in:
Alexey Andreev 2021-03-17 23:27:12 +03:00
parent 53e65b2d79
commit a8eebd7e1a

View File

@ -1066,7 +1066,10 @@ public class TeaVMTestRunner extends Runner implements Filterable {
}
private boolean isIgnored(Method method) {
return getAnnotation(method, JUNIT4_IGNORE) != null || getAnnotation(method, TESTNG_IGNORE) != null;
return getAnnotation(method, JUNIT4_IGNORE) != null
|| getAnnotation(method, TESTNG_IGNORE) != null
|| getClassAnnotation(method, JUNIT4_IGNORE) != null
|| getClassAnnotation(method, TESTNG_IGNORE) != null;
}
private AnnotationHolder getAnnotation(Method method, String name) {
@ -1090,6 +1093,7 @@ public class TeaVMTestRunner extends Runner implements Filterable {
return cls.getAnnotations().get(name);
}
private <T extends TeaVMTarget> CompileResult compile(TeaVMTestConfiguration<T> configuration,
Supplier<T> targetSupplier, String entryPoint, File path, String extension,
CompilePostProcessor postBuild, boolean separateDir,