For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

options

open fun options(@DelegatesTo(value = TestFrameworkOptions::class) testFrameworkConfigure: Closure): TestFrameworkOptions(source)

Configures test framework specific options.

When a Test task is created outside of Test Suites, you should call useJUnit, useJUnitPlatform or useTestNG before using this method. If no test framework has been set, the task will assume JUnit4.

Return

The test framework options.

Since

0.7


open fun options(testFrameworkConfigure: Action<in TestFrameworkOptions>): TestFrameworkOptions(source)

Configures test framework specific options.

When a Test task is created outside of Test Suites, you should call useJUnit, useJUnitPlatform or useTestNG before using this method. If no test framework has been set, the task will assume JUnit4.

Return

The test framework options.

Since

3.5