Package strikt.gradle.testkit

Methods

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

Maps this assertion to the task at the provided taskPath.

Parameters:
  • taskPath: String
fun <T : BuildResult> Builder.taskPaths(outcome: TaskOutcome): Builder

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

Parameters:
  • outcome: TaskOutcome
fun <T : BuildResult> Builder.tasks(outcome: TaskOutcome): Builder

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

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

Asserts that the outcome is equal to outcome.

Parameters:
  • outcome: TaskOutcome
fun <T : BuildTask> Builder.isSuccess(): Builder

Asserts that the outcome is TaskOutcome.SUCCESS.

Parameters:
  • No parameters
fun <T : BuildTask> Builder.isFailed(): Builder

Asserts that the outcome is TaskOutcome.FAILED.

Parameters:
  • No parameters
fun <T : BuildTask> Builder.isUpToDate(): Builder

Asserts that the outcome is TaskOutcome.UP_TO_DATE.

Parameters:
  • No parameters
fun <T : BuildTask> Builder.isSkipped(): Builder

Asserts that the outcome is TaskOutcome.SKIPPED.

Parameters:
  • No parameters
fun <T : BuildTask> Builder.isFromCache(): Builder

Asserts that the outcome is TaskOutcome.FROM_CACHE.

Parameters:
  • No parameters
fun <T : BuildTask> Builder.isNoSource(): Builder

Asserts that the outcome is TaskOutcome.NO_SOURCE.

Parameters:
  • No parameters