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 TestListResolver
private final File
private final int
private 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) void
execute
(TestsToRun testsToRun, TestNGReporter testNGReporter) private void
executeLazy
(TestsToRun testsToRun, TestNGReporter testNGReporter) private void
executeMulti
(TestsToRun testsToRun, TestNGReporter testNGReporter) private void
executeSingleClass
(TestNGReporter testNGReporter, Class<?> testClass) private static Class<Annotation>
private static Class<Annotation>
private static Class<?>
private boolean
private boolean
hasJunit4TestAnnotation
(Class<?> c) private boolean
isJunit3Test
(Class<?> c) private boolean
isJunit4Test
(Class<?> c) private boolean
isJUnitTest
(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(TestNGReporter testNGReporter, Class<?> testClass) throws TestSetFailedException - Throws:
TestSetFailedException
-
executeLazy
private void executeLazy(TestsToRun testsToRun, TestNGReporter testNGReporter) throws TestSetFailedException - Throws:
TestSetFailedException
-
findJUnitTestClass
-
findJUnitRunWithAnnotation
-
findJUnitTestAnnotation
-
lookupAnnotation
-
lookupClass
-
executeMulti
private void executeMulti(TestsToRun testsToRun, TestNGReporter testNGReporter) throws TestSetFailedException - Throws:
TestSetFailedException
-
isJUnitTest
-
isJunit4Test
-
hasJunit4RunWithAnnotation
-
hasJunit4TestAnnotation
-
isJunit3Test
-
createJUnitOptions
-
getOptions
- Specified by:
getOptions
in classTestSuite
-