org.apache.maven.surefire.testng
Class TestNGExecutor

java.lang.Object
  extended by org.apache.maven.surefire.testng.TestNGExecutor

public class TestNGExecutor
extends Object

Contains utility methods for executing TestNG.

Author:
Brett Porter, Alex Popescu

Field Summary
static String DEFAULT_SUREFIRE_SUITE_NAME
          The default name for a suite launched from the maven surefire plugin
static String DEFAULT_SUREFIRE_TEST_NAME
          The default name for a test launched from the maven surefire plugin
 
Method Summary
static void run(Class[] testClasses, String testSourceDirectory, Map options, RunListener reportManager, TestNgTestSuite suite, File reportsDirectory, String methodNamePattern)
           
static void run(List<String> suiteFiles, String testSourceDirectory, Map options, RunListener reportManager, TestNgTestSuite suite, File reportsDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SUREFIRE_SUITE_NAME

public static final String DEFAULT_SUREFIRE_SUITE_NAME
The default name for a suite launched from the maven surefire plugin

See Also:
Constant Field Values

DEFAULT_SUREFIRE_TEST_NAME

public static final String DEFAULT_SUREFIRE_TEST_NAME
The default name for a test launched from the maven surefire plugin

See Also:
Constant Field Values
Method Detail

run

public static void run(Class[] testClasses,
                       String testSourceDirectory,
                       Map options,
                       RunListener reportManager,
                       TestNgTestSuite suite,
                       File reportsDirectory,
                       String methodNamePattern)
                throws org.apache.maven.surefire.testset.TestSetFailedException
Throws:
org.apache.maven.surefire.testset.TestSetFailedException

run

public static void run(List<String> suiteFiles,
                       String testSourceDirectory,
                       Map options,
                       RunListener reportManager,
                       TestNgTestSuite suite,
                       File reportsDirectory)
                throws org.apache.maven.surefire.testset.TestSetFailedException
Throws:
org.apache.maven.surefire.testset.TestSetFailedException


Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.