@ProviderType
public interface TestsManager
Modifier and Type | Interface and Description |
---|---|
static class |
TestsManager.NoTestCasesFoundException |
Modifier and Type | Method and Description |
---|---|
void |
clearCaches()
Deprecated.
Caches have been removed.
|
void |
executeTests(@Nullable Collection<String> testNames,
@NotNull Renderer renderer,
@Nullable TestSelector selector)
Deprecated.
use
executeTests(Renderer, TestSelector) instead |
void |
executeTests(@NotNull Renderer renderer,
@Nullable TestSelector selector)
Execute tests and report results using supplied Renderer - does NOT call setup or cleanup on renderer.
|
Class<?> |
getTestClass(@NotNull String testName)
Instantiate test class for specified test
|
Collection<String> |
getTestNames(@Nullable TestSelector selector)
Return the names of available tests
|
void |
listTests(@NotNull Collection<String> testNames,
@NotNull Renderer renderer)
List tests using supplied Renderer - does NOT call setup or cleanup on renderer.
|
Collection<String> getTestNames(@Nullable @Nullable TestSelector selector)
selector
- if null, returns all available tests.Class<?> getTestClass(@NotNull @NotNull String testName) throws ClassNotFoundException
testName
- the test classClassNotFoundException
- if a class for testName
cannot be foundvoid listTests(@NotNull @NotNull Collection<String> testNames, @NotNull @NotNull Renderer renderer) throws Exception
testNames
- the tests to listrenderer
- the renderer to useException
- if any error occursvoid executeTests(@NotNull @NotNull Renderer renderer, @Nullable @Nullable TestSelector selector) throws TestsManager.NoTestCasesFoundException, Exception
renderer
- the renderer to use for the reportingselector
- the selector used to select tests and test methods; all tests are executed if this is nullTestsManager.NoTestCasesFoundException
- if no tests matching the selector are availableException
- if an error occurs@Deprecated void executeTests(@Nullable @Nullable Collection<String> testNames, @NotNull @NotNull Renderer renderer, @Nullable @Nullable TestSelector selector) throws Exception
executeTests(Renderer, TestSelector)
insteadtestNames
- the testsrenderer
- the renderer to use for the reportingselector
- the selector used to select tests and test methods (it can be null
)Exception
- if any error occurs@Deprecated void clearCaches()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.