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.

TestDescriptor

@NullMarked
interface TestDescriptor(source)

Describes a test. A test may be a single atomic test, such as the execution of a test method, or it may be a composite test, made up of zero or more tests.

Since

0.9

Functions

Link copied to clipboard
@Nullable
abstract fun getClassName(): @Nullable String
Returns the test class name for this test, if any.
Link copied to clipboard
abstract fun getDisplayName(): String
Returns the display name of the test.
Link copied to clipboard
abstract fun getName(): String
Returns the name of the test.
Link copied to clipboard
@Nullable
abstract fun getParent(): @Nullable TestDescriptor
Returns the parent of this test, if any.
Link copied to clipboard
Returns the source of the test descriptor.
Link copied to clipboard
abstract fun isComposite(): Boolean
Is this test a composite test?