package strikt.gradle.testkit

Fields

Name Description
val tasks: Assertion.Builder><List<BuildTask>>

Maps this assertion to an assertion on all tasks that were part of the build.

val output: Assertion.Builder<String>

Maps this assertion to an assertion on the output.

val outcome: Assertion.Builder<TaskOutcome>

Maps this assertion to the task outcome.

val path: Assertion.Builder<String>

Maps this assertion to the task path.

Methods

task

infix fun <T> Assertion.Builder<T>.task(taskPath: String): Assertion.Builder<BuildTask?>

Maps this assertion to the task at the provided taskPath.

Receiver

Name Description
Assertion.Builder<T>

Parameters

Name Description
taskPath: String

ReturnValue

Name Description
Assertion.Builder<BuildTask?>

taskPaths

infix fun <T> Assertion.Builder<T>.taskPaths(outcome: TaskOutcome): Assertion.Builder><List<String>>

Maps this assertion to the task paths of the build with the provided outcome.

Receiver

Name Description
Assertion.Builder<T>

Parameters

Name Description
outcome: TaskOutcome

ReturnValue

Name Description
Assertion.Builder><List<String>>

tasks

infix fun <T> Assertion.Builder<T>.tasks(outcome: TaskOutcome): Assertion.Builder><List<BuildTask>>

Maps this assertion to the tasks of the build with the provided outcome.

Receiver

Name Description
Assertion.Builder<T>

Parameters

Name Description
outcome: TaskOutcome

ReturnValue

Name Description
Assertion.Builder><List<BuildTask>>

hasOutcome

infix fun <T> Assertion.Builder<T>.hasOutcome(outcome: TaskOutcome): infix

Asserts that the outcome is equal to outcome.

Receiver

Name Description
Assertion.Builder<T>

Parameters

Name Description
outcome: TaskOutcome

ReturnValue

Name Description
infix

isSuccess

fun <T> Assertion.Builder<T>.isSuccess():

Asserts that the outcome is TaskOutcome.SUCCESS.

Receiver

Name Description
Assertion.Builder<T>

ReturnValue

Name Description

isFailed

fun <T> Assertion.Builder<T>.isFailed():

Asserts that the outcome is TaskOutcome.FAILED.

Receiver

Name Description
Assertion.Builder<T>

ReturnValue

Name Description

isUpToDate

fun <T> Assertion.Builder<T>.isUpToDate():

Asserts that the outcome is TaskOutcome.UP_TO_DATE.

Receiver

Name Description
Assertion.Builder<T>

ReturnValue

Name Description

isSkipped

fun <T> Assertion.Builder<T>.isSkipped():

Asserts that the outcome is TaskOutcome.SKIPPED.

Receiver

Name Description
Assertion.Builder<T>

ReturnValue

Name Description

isFromCache

fun <T> Assertion.Builder<T>.isFromCache():

Asserts that the outcome is TaskOutcome.FROM_CACHE.

Receiver

Name Description
Assertion.Builder<T>

ReturnValue

Name Description

isNoSource

fun <T> Assertion.Builder<T>.isNoSource():

Asserts that the outcome is TaskOutcome.NO_SOURCE.

Receiver

Name Description
Assertion.Builder<T>

ReturnValue

Name Description