Package de.joshuagleitze.test.gradle

Functions

failed
Link copied to clipboard
fun Expect<BuildTask?>.failed(): Expect<BuildTask>
Expects that the subject of the assertion (a Gradle task) was invoked and that its outcome was FAILED.
hadNoSource
Link copied to clipboard
fun Expect<BuildTask?>.hadNoSource(): Expect<BuildTask>
Expects that the subject of the assertion (a Gradle task) was invoked and that its outcome was NO_SOURCE.
output
Link copied to clipboard
fun Expect<BuildResult>.output(assertionCreator: Expect<String>.() -> Unit): Expect<BuildResult>
Adds all assertions created by assertionCreator to the Expect for the for the output of the subject of this assertion (a BuildResult).
task
Link copied to clipboard
fun Expect<BuildResult>.task(path: String): Expect<BuildTask?>
Creates an Expect for the task with the given path of the subject of this assertion.
usedCachedResult
Link copied to clipboard
fun Expect<BuildTask?>.usedCachedResult(): Expect<BuildTask>
Expects that the subject of the assertion (a Gradle task) was invoked and that its outcome was FROM_CACHE.
wasInvoked
Link copied to clipboard
fun Expect<BuildTask?>.wasInvoked(): Expect<BuildTask>
Expects that the subject of the assertion (a Gradle task) was invoked.
fun Expect<BuildTask?>.wasInvoked(assertionCreator: Expect<BuildTask>.() -> Unit): Expect<BuildTask?>
Expects that the subject of the assertion (a Gradle task) was invoked and adds all assertions created by assertionCreator to the Expect for the for the subject.
wasNotInvoked
Link copied to clipboard
fun Expect<BuildTask?>.wasNotInvoked(): Expect<Unit>
Expects that the subject of the assertion (a Gradle task) was not invoked.
wasSkipped
Link copied to clipboard
fun Expect<BuildTask?>.wasSkipped(): Expect<BuildTask>
Expects that the subject of the assertion (a Gradle task) was invoked and that its outcome was SKIPPED.
wasSuccessful
Link copied to clipboard
fun Expect<BuildTask?>.wasSuccessful(): Expect<BuildTask>
Expects that the subject of the assertion (a Gradle task) was invoked and that its outcome was SUCCESS.
wasUpToDate
Link copied to clipboard
fun Expect<BuildTask?>.wasUpToDate(): Expect<BuildTask>
Expects that the subject of the assertion (a Gradle task) was invoked and that its outcome was UP_TO_DATE.

Properties

output
Link copied to clipboard
val Expect<BuildResult>.output: Expect<String>
Creates an Expect for the output of the subject of this assertion.