JvmTestSuite

A test suite is a collection of JVM-based tests.

Each test suite consists of

Based on the testing framework declared, Gradle will automatically add the appropriate dependencies and configure the underlying test task.

Since

7.3

Functions

Link copied to clipboard
abstract fun dependencies(dependencies: Action<in JvmComponentDependencies>)
Configure dependencies for this component.
Link copied to clipboard
Link copied to clipboard
Dependency handler for this component.
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun getSources(): SourceSet
Returns the container of JvmTestSuiteTarget objects part of this suite.
Link copied to clipboard
Collection of test suite targets.
Link copied to clipboard
abstract fun getTestType(): Property<String>
Get the test type for this test suite.
Link copied to clipboard
abstract fun sources(configuration: Action<in SourceSet>)
Configure the sources for this test suite.
Link copied to clipboard
abstract fun useJUnit()
Use the JUnit4 testing framework.
abstract fun useJUnit(version: String)
abstract fun useJUnit(version: Provider<String>)
Use the JUnit4 testing framework with a specific version.
Link copied to clipboard
abstract fun useJUnitJupiter()
Use the JUnit Jupiter testing framework.
abstract fun useJUnitJupiter(version: String)
abstract fun useJUnitJupiter(version: Provider<String>)
Use the JUnit Jupiter testing framework with a specific version.
Link copied to clipboard
abstract fun useKotlinTest()
Use the kotlin.test testing framework.
abstract fun useKotlinTest(version: String)
abstract fun useKotlinTest(version: Provider<String>)
Use the kotlin.test testing framework with a specific version.
Link copied to clipboard
abstract fun useSpock()
Use the Spock Framework testing framework.
abstract fun useSpock(version: String)
abstract fun useSpock(version: Provider<String>)
Use the Spock Framework testing framework with a specific version.
Link copied to clipboard
abstract fun useTestNG()
Use the TestNG testing framework.
abstract fun useTestNG(version: String)
abstract fun useTestNG(version: Provider<String>)
Use the TestNG testing framework with a specific version.