Class TestNames
java.lang.Object
com.carrotsearch.gradle.buildinfra.testing.TestNames
Helpers for naming tests in reports.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringdisplayName(org.gradle.api.tasks.testing.TestDescriptor descriptor) The test's display name, without the parameter list JUnit Platform appends to method names (e.g.static booleanisClassSuite(org.gradle.api.tasks.testing.TestDescriptor suite) True for the suite of a test class (as opposed to gradle's runners or nested containers).static StringmethodName(org.gradle.api.tasks.testing.TestDescriptor descriptor) The test's method name, usable in a--testsfilter: JUnit Platform reports test names with a parameter list (e.g.
-
Method Details
-
methodName
The test's method name, usable in a--testsfilter: JUnit Platform reports test names with a parameter list (e.g.testFoo()ortestBar(String)[1]), which is stripped. -
displayName
The test's display name, without the parameter list JUnit Platform appends to method names (e.g.testFoo()ortestBar(String)). Custom display names are left as they are. -
isClassSuite
public static boolean isClassSuite(org.gradle.api.tasks.testing.TestDescriptor suite) True for the suite of a test class (as opposed to gradle's runners or nested containers).
-