Package org.apache.maven.surefire.testng
Class TestNGDirectoryTestSuite
java.lang.Object
org.apache.maven.surefire.testng.TestSuite
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite
Test suite for TestNG based on a directory of Java test classes. Can also execute JUnit tests.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class<? extends Annotation>private final Class<? extends Annotation>private final Class<?>private final List<CommandLineOption>private final TestListResolverprivate final Fileprivate final intprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionTestNGDirectoryTestSuite(String testSourceDirectory, Map<String, String> confOptions, File reportsDirectory, TestListResolver methodFilter, List<CommandLineOption> mainCliOptions, int skipAfterFailureCount) -
Method Summary
Modifier and TypeMethodDescription(package private) voidexecute(TestsToRun testsToRun, RunListener reporterManager) private voidexecuteLazy(TestsToRun testsToRun, RunListener reporterManager) private voidexecuteMulti(TestsToRun testsToRun, RunListener reporterManager) private voidexecuteSingleClass(RunListener reporter, Class<?> testClass) private static Class<Annotation>private static Class<Annotation>private static Class<?>private booleanprivate booleanhasJunit4TestAnnotation(Class<?> c) private booleanisJunit3Test(Class<?> c) private booleanisJunit4Test(Class<?> c) private booleanisJUnitTest(Class<?> c) private static Class<Annotation>lookupAnnotation(String className) private static Class<?>lookupClass(String className) Methods inherited from class org.apache.maven.surefire.testng.TestSuite
finishTestSuite, startTestSuite
-
Field Details
-
options
-
junitOptions
-
testSourceDirectory
-
reportsDirectory
-
methodFilter
-
junitTestClass
-
junitRunWithAnnotation
-
junitTestAnnotation
-
mainCliOptions
-
skipAfterFailureCount
private final int skipAfterFailureCount
-
-
Constructor Details
-
TestNGDirectoryTestSuite
TestNGDirectoryTestSuite(String testSourceDirectory, Map<String, String> confOptions, File reportsDirectory, TestListResolver methodFilter, List<CommandLineOption> mainCliOptions, int skipAfterFailureCount)
-
-
Method Details
-
execute
- Throws:
TestSetFailedException
-
executeSingleClass
private void executeSingleClass(RunListener reporter, Class<?> testClass) throws TestSetFailedException - Throws:
TestSetFailedException
-
executeLazy
private void executeLazy(TestsToRun testsToRun, RunListener reporterManager) throws TestSetFailedException - Throws:
TestSetFailedException
-
findJUnitTestClass
-
findJUnitRunWithAnnotation
-
findJUnitTestAnnotation
-
lookupAnnotation
-
lookupClass
-
executeMulti
private void executeMulti(TestsToRun testsToRun, RunListener reporterManager) throws TestSetFailedException - Throws:
TestSetFailedException
-
isJUnitTest
-
isJunit4Test
-
hasJunit4RunWithAnnotation
-
hasJunit4TestAnnotation
-
isJunit3Test
-
createJUnitOptions
-
getOptions
- Specified by:
getOptionsin classTestSuite
-