gradle
8.2

# TestNGOptions

abstract class TestNGOptions : TestFrameworkOptions

The TestNG specific test options.

## Constructors

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

## 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
getSuites
Link copied to clipboard
open fun getSuites(testSuitesDir: File): List<File>
includeGroups
Link copied to clipboard
open fun includeGroups(includeGroups: Array<String>): TestNGOptions
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
propertyMissing
Link copied to clipboard
open fun propertyMissing(name: String): Any
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
useDefaultListeners
Link copied to clipboard
open fun useDefaultListeners(): TestNGOptions
open fun useDefaultListeners(useDefaultListeners: Boolean): TestNGOptions

## 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"
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
useDefaultListeners
Link copied to clipboard
@get:Internal
open var useDefaultListeners: Boolean