strikt-gradle / strikt.gradle.testkit / strikt.api.Assertion.Builder

Extensions for strikt.api.Assertion.Builder

hasOutcome

Asserts that the outcome is equal to outcome.

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

isFailed

Asserts that the outcome is TaskOutcome.FAILED.

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

isFromCache

Asserts that the outcome is TaskOutcome.FROM_CACHE.

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

isNoSource

Asserts that the outcome is TaskOutcome.NO_SOURCE.

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

isSkipped

Asserts that the outcome is TaskOutcome.SKIPPED.

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

isSuccess

Asserts that the outcome is TaskOutcome.SUCCESS.

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

isUpToDate

Asserts that the outcome is TaskOutcome.UP_TO_DATE.

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

outcome

Maps this assertion to the task outcome.

val <T : BuildTask> Builder<T>.outcome: Builder<TaskOutcome>

output

Maps this assertion to an assertion on the output.

val <T : BuildResult> Builder<T>.output: Builder<String>

path

Maps this assertion to the task path.

val <T : BuildTask> Builder<T>.path: Builder<String>

task

Maps this assertion to the task at the provided taskPath.

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

taskPaths

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

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

tasks

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

val <T : BuildResult> Builder<T>.tasks: Builder<List<BuildTask>>

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

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