# TestNGOptions

abstract class TestNGOptions : TestFrameworkOptions(source)

The TestNG specific test options.

#### Since

0.7

## Constructors

TestNGOptions
Link copied to clipboard
@Inject
constructor(projectLayout: ProjectLayout)

## Properties

configFailurePolicy
Link copied to clipboard
@get:Internal
open var configFailurePolicy: String
DEFAULT_CONFIG_FAILURE_POLICY
Link copied to clipboard
val DEFAULT_CONFIG_FAILURE_POLICY: String = "skip"
The default config failure policy.
excludeGroups
Link copied to clipboard
@get:Input
open var excludeGroups: Set<String>
groupByInstances
Link copied to clipboard
@get:Internal
open var groupByInstances: Boolean
includeGroups
Link copied to clipboard
@get:Input
open var includeGroups: Set<String>
listeners
Link copied to clipboard
@get:Internal
open var listeners: Set<String>
outputDirectory
Link copied to clipboard
@get:OutputDirectory
open var outputDirectory: File
parallel
Link copied to clipboard
@get:Nullable
@get:Internal
open var parallel: String
preserveOrder
Link copied to clipboard
@get:Internal
open var preserveOrder: Boolean
suiteName
Link copied to clipboard
@get:Internal
open var suiteName: String
suiteXmlBuilder
Link copied to clipboard
@get:Internal
open var suiteXmlBuilder: MarkupBuilder
suiteXmlFiles
Link copied to clipboard
@get:InputFiles
@get:PathSensitive(value = PathSensitivity.NONE)
open var suiteXmlFiles: List<File>
suiteXmlWriter
Link copied to clipboard
@get:Internal
open var suiteXmlWriter: StringWriter
testName
Link copied to clipboard
@get:Internal
open var testName: String
threadCount
Link copied to clipboard
@get:Internal
open var threadCount: Int
threadPoolFactoryClass
Link copied to clipboard
@get:Internal
@get:Incubating
@set:Incubating
open var threadPoolFactoryClass: String
useDefaultListeners
Link copied to clipboard
@get:Internal
open var useDefaultListeners: Boolean

## Functions

copyFrom
Link copied to clipboard
open fun copyFrom(other: TestNGOptions)
Copies the options from the source options into the current one.
excludeGroups
Link copied to clipboard
open fun excludeGroups(excludeGroups: Array<String>): TestNGOptions
Exclude groups.
getSuites
Link copied to clipboard
open fun getSuites(testSuitesDir: File): List<File>
Returns the suites.
getSuiteThreadPoolSize
Link copied to clipboard
@Internal
@Incubating
abstract fun getSuiteThreadPoolSize(): Property<Integer>
The number of XML suites will run parallel
includeGroups
Link copied to clipboard
open fun includeGroups(includeGroups: Array<String>): TestNGOptions
Include groups.
isGroupByInstances
Link copied to clipboard
@Internal
open fun isGroupByInstances(): Boolean
Indicates whether the tests should be grouped by instances.
isPreserveOrder
Link copied to clipboard
@Internal
open fun isPreserveOrder(): Boolean
Indicates whether the tests should be run in deterministic order.
isUseDefaultListeners
Link copied to clipboard
@Internal
open fun isUseDefaultListeners(): Boolean
Whether the default listeners and reporters should be used.
methodMissing
Link copied to clipboard
open fun methodMissing(name: String, args: Any): Any
Method missing.
propertyMissing
Link copied to clipboard
open fun propertyMissing(name: String): Any
Property missing.
suites
Link copied to clipboard
open fun suites(suiteFiles: Array<File>)
Add suite files by File objects.
open fun suites(suiteFiles: Array<String>)
Add suite files by Strings.
suiteXmlBuilder
Link copied to clipboard
open fun suiteXmlBuilder(): MarkupBuilder
Suite xml builder.
useDefaultListeners
Link copied to clipboard
open fun useDefaultListeners(): TestNGOptions
open fun useDefaultListeners(useDefaultListeners: Boolean): TestNGOptions
Use default listeners.