mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
JUnit: support ignoring all tests in a class
This commit is contained in:
parent
53e65b2d79
commit
a8eebd7e1a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user