wasNotInvoked

fun Expect<BuildTask?>.wasNotInvoked(): Expect<Unit>

Expects that the subject of the assertion (a Gradle task) was not invoked. This means that it was not invoked explicitly in the command line, and that it was not a (transitive) dependency of any other task that was explicitly invoked in the command line.

Return

An (unusable) Expect for Unit because there is no task to execute further assertions on.

Sources

(source)
Link copied to clipboard