task

fun Expect<BuildResult>.task(path: String): Expect<BuildTask?>

Creates an Expect for the task with the given path of the subject of this assertion.

Note: Just like BuildResult.task, this function expects a task path, which must start with a colon.

Return

The newly created Expect for the task named “path” of the this assertion’s BuildResult.

Sources

(source)
Link copied to clipboard