public abstract class TestFinder
extends java.lang.Object
You instantiate a TestFinder by providing the top-level package where the tests live.
You can then find the list of Thucydides test classes using getNormalTestClasses(), getDataDrivenTestClasses(), and getAllTestClasses() (which returns both normal and data-driven tests).
You may also need to retrieve the list of test methods for a particular category of class. You can do this using the getTestMethodsFrom() method, e.g.
new TestFinder("my.package").getTestMethodsFrom().normalTestClasses()| Modifier and Type | Method and Description |
|---|---|
abstract int |
countTestMethods() |
TestMethodFinder |
findTestMethods() |
java.util.List<java.lang.reflect.Method> |
getAllTestMethods() |
abstract java.util.List<java.lang.Class<?>> |
getClasses() |
static TestFinderBuilderFactory |
thatFinds() |
public static TestFinderBuilderFactory thatFinds()
public abstract java.util.List<java.lang.Class<?>> getClasses()
public abstract int countTestMethods()
public TestMethodFinder findTestMethods()
public java.util.List<java.lang.reflect.Method> getAllTestMethods()