|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.gradle.api.tasks.testing.TestFrameworkOptions org.gradle.api.tasks.testing.testng.TestNGOptions
class TestNGOptions extends TestFrameworkOptions
Field Summary | |
---|---|
static java.lang.String |
JAVADOC_ANNOTATIONS
|
static java.lang.String |
JDK_ANNOTATIONS
|
Property Summary | |
---|---|
java.util.Set |
excludeGroups
The set of groups to exclude. |
java.util.Set |
includeGroups
The set of groups to run. |
boolean |
javadocAnnotations
When true, Javadoc annotations are used for these tests. |
java.util.Set |
listeners
The set of fully qualified classes that are TestNG listeners (for example org.testng.ITestListener or org.testng.IReporter) |
java.lang.String |
parallel
The parallel mode to use for running the tests - either methods or tests. |
java.lang.String |
suiteName
Sets the default name of the test suite, if one is not specified in a suite xml file or in the source code. |
groovy.xml.MarkupBuilder |
suiteXmlBuilder
|
java.util.List |
suiteXmlFiles
The suiteXmlFiles to use for running TestNG. |
java.io.StringWriter |
suiteXmlWriter
|
java.lang.String |
testName
Sets the default name of the test, if one is not specified in a suite xml file or in the source code. |
java.util.List |
testResources
List of all directories containing Test sources. |
int |
threadCount
The number of threads to use for this run. |
boolean |
useDefaultListeners
Whether the default listeners and reporters should be used. |
Constructor Summary | |
TestNGOptions(java.io.File projectDir)
|
Method Summary | |
---|---|
TestNGOptions
|
excludeGroups(java.lang.String excludeGroups)
|
java.lang.String
|
getAnnotations()
|
java.util.List
|
getSuites(java.io.File testSuitesDir)
|
TestNGOptions
|
includeGroups(java.lang.String includeGroups)
|
TestNGOptions
|
javadocAnnotations()
|
TestNGOptions
|
jdkAnnotations()
|
java.lang.Object
|
methodMissing(java.lang.String name, java.lang.Object args)
|
java.lang.Object
|
propertyMissing(java.lang.String name)
|
void
|
setAnnotationsOnSourceCompatibility(JavaVersion sourceCompatibilityProp)
|
groovy.xml.MarkupBuilder
|
suiteXmlBuilder()
|
void
|
suites(java.lang.String suiteFiles)
Add suite files by Strings. |
void
|
suites(java.io.File suiteFiles)
Add suite files by File objects. |
TestNGOptions
|
useDefaultListeners()
|
TestNGOptions
|
useDefaultListeners(boolean useDefaultListeners)
|
Field Detail |
---|
public static final java.lang.String JAVADOC_ANNOTATIONS
public static final java.lang.String JDK_ANNOTATIONS
Property Detail |
---|
java.util.Set excludeGroups
java.util.Set includeGroups
boolean javadocAnnotations
java.util.Set listeners
java.lang.String parallel
java.lang.String suiteName
groovy.xml.MarkupBuilder suiteXmlBuilder
java.util.List suiteXmlFiles
java.io.StringWriter suiteXmlWriter
java.lang.String testName
java.util.List testResources
int threadCount
boolean useDefaultListeners
Constructor Detail |
---|
TestNGOptions(java.io.File projectDir)
Method Detail |
---|
TestNGOptions excludeGroups(java.lang.String excludeGroups)
java.lang.String getAnnotations()
java.util.List getSuites(java.io.File testSuitesDir)
TestNGOptions includeGroups(java.lang.String includeGroups)
TestNGOptions javadocAnnotations()
TestNGOptions jdkAnnotations()
java.lang.Object methodMissing(java.lang.String name, java.lang.Object args)
java.lang.Object propertyMissing(java.lang.String name)
void setAnnotationsOnSourceCompatibility(JavaVersion sourceCompatibilityProp)
groovy.xml.MarkupBuilder suiteXmlBuilder()
void suites(java.lang.String suiteFiles)
void suites(java.io.File suiteFiles)
TestNGOptions useDefaultListeners()
TestNGOptions useDefaultListeners(boolean useDefaultListeners)
Groovy Documentation