public class TestNGProvider extends AbstractProvider
Modifier and Type | Field and Description |
---|---|
private CommandReader |
commandsReader |
private java.util.List<CommandLineOption> |
mainCliOptions |
private ProviderParameters |
providerParameters |
private java.util.Map<java.lang.String,java.lang.String> |
providerProperties |
private ReporterConfiguration |
reporterConfiguration |
private RunOrderCalculator |
runOrderCalculator |
private ScanResult |
scanResult |
private java.lang.ClassLoader |
testClassLoader |
private TestRequest |
testRequest |
private TestsToRun |
testsToRun |
Constructor and Description |
---|
TestNGProvider(ProviderParameters bootParams) |
Modifier and Type | Method and Description |
---|---|
private int |
getSkipAfterFailureCount() |
java.lang.Iterable<java.lang.Class<?>> |
getSuites()
Determines the number of forks.
|
private TestListResolver |
getTestFilter() |
private boolean |
hasSpecificTests() |
RunResult |
invoke(java.lang.Object forkTestSet)
Runs a forked test
|
private boolean |
isFailFast() |
(package private) boolean |
isTestNGXmlTestSuite(TestRequest testSuiteDefinition) |
private TestNGDirectoryTestSuite |
newDirectorySuite() |
private TestNGXmlTestSuite |
newXmlSuite() |
private void |
registerPleaseStopListener() |
private void |
registerShutdownListener(TestsToRun testsToRun) |
private TestsToRun |
scanClassPath() |
cancel
private final java.util.Map<java.lang.String,java.lang.String> providerProperties
private final ReporterConfiguration reporterConfiguration
private final java.lang.ClassLoader testClassLoader
private final ScanResult scanResult
private final TestRequest testRequest
private final ProviderParameters providerParameters
private final RunOrderCalculator runOrderCalculator
private final java.util.List<CommandLineOption> mainCliOptions
private final CommandReader commandsReader
private TestsToRun testsToRun
public TestNGProvider(ProviderParameters bootParams)
public RunResult invoke(java.lang.Object forkTestSet) throws TestSetFailedException
SurefireProvider
forkTestSet
- An item from the iterator in #getSuites. Will be null for forkmode never or always.
When this is non-null, the forked process will run only that test
and probably not scan the classpathTestSetFailedException
- When testset failsboolean isTestNGXmlTestSuite(TestRequest testSuiteDefinition)
private boolean isFailFast()
private int getSkipAfterFailureCount()
private void registerShutdownListener(TestsToRun testsToRun)
private void registerPleaseStopListener()
private TestNGDirectoryTestSuite newDirectorySuite()
private TestNGXmlTestSuite newXmlSuite()
public java.lang.Iterable<java.lang.Class<?>> getSuites()
SurefireProvider
private TestsToRun scanClassPath()
private boolean hasSpecificTests()
private TestListResolver getTestFilter()