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.

getClassName

@Nullable
abstract fun getClassName(): @Nullable String(source)

Returns the test class name for this test, if any.

Note that as of Gradle 9.3, this method may return a value that is not a class name for non-class-based testing.

Return

The class name. May return null.

Since

0.9