org.gradle.testkit.runner

# Package-level declarations

Support for executing contrived Gradle builds for the purpose of testing build logic.

#### See also

GradleRunner

## Types

BuildResult
Link copied to clipboard
interface BuildResult
The result of executing a build, via the GradleRunner.
BuildTask
Link copied to clipboard
interface BuildTask
A task that was executed when running a specific build.
GradleRunner
Link copied to clipboard
abstract class GradleRunner
Executes a Gradle build, allowing inspection of the outcome.
InvalidPluginMetadataException
Link copied to clipboard
open class InvalidPluginMetadataException : IllegalStateException
Thrown when the plugin under test metadata cannot be read.
InvalidRunnerConfigurationException
Link copied to clipboard
open class InvalidRunnerConfigurationException : IllegalStateException
Thrown when a build cannot be executed due to the runner being in an invalid state.
TaskOutcome
Link copied to clipboard
enum TaskOutcome
The outcome of executing a task during a build.
UnexpectedBuildFailure
Link copied to clipboard
open class UnexpectedBuildFailure : UnexpectedBuildResultException
Thrown when executing a build that was expected to succeed, but failed.
UnexpectedBuildResultException
Link copied to clipboard
abstract class UnexpectedBuildResultException : RuntimeException
Base class for UnexpectedBuildFailure and UnexpectedBuildSuccess.
UnexpectedBuildSuccess
Link copied to clipboard
open class UnexpectedBuildSuccess : UnexpectedBuildResultException
Thrown when executing a build that was expected to fail, but succeeded.
UnsupportedFeatureException
Link copied to clipboard
open class UnsupportedFeatureException : RuntimeException
Thrown when a build was executed with a target Gradle version that does not support a specific feature.