Strikt.gradle.testkit
package strikt.gradle.testkit
Fields
Name | Description |
---|---|
val tasks: Assertion.Builder
|
Maps this assertion to an assertion on all tasks that were part of the build. |
val output: Assertion.Builder
|
Maps this assertion to an assertion on the output. |
val outcome: Assertion.Builder
|
Maps this assertion to the task outcome. |
val path: Assertion.Builder
|
Maps this assertion to the task path. |
Methods
task
infix fun <T> Assertion.Builder
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
taskPath: String
|
ReturnValue
Name | Description |
---|---|
Assertion.Builder
|
taskPaths
infix fun <T> Assertion.Builder
><List<String>>
Maps this assertion to the task paths of the build with the provided outcome.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
outcome: TaskOutcome
|
ReturnValue
Name | Description |
---|---|
Assertion.Builder
|
tasks
infix fun <T> Assertion.Builder
><List<BuildTask>>
Maps this assertion to the tasks of the build with the provided outcome.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
outcome: TaskOutcome
|
ReturnValue
Name | Description |
---|---|
Assertion.Builder
|
hasOutcome
infix fun <T> Assertion.Builder
Asserts that the outcome is equal to outcome.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
outcome: TaskOutcome
|
ReturnValue
Name | Description |
---|---|
infix
|
isSuccess
fun <T> Assertion.Builder
Asserts that the outcome is TaskOutcome.SUCCESS.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
|
isFailed
fun <T> Assertion.Builder
Asserts that the outcome is TaskOutcome.FAILED.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
|
isUpToDate
fun <T> Assertion.Builder
Asserts that the outcome is TaskOutcome.UP_TO_DATE.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
|
isSkipped
fun <T> Assertion.Builder
Asserts that the outcome is TaskOutcome.SKIPPED.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
|
isFromCache
fun <T> Assertion.Builder
Asserts that the outcome is TaskOutcome.FROM_CACHE.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
|
isNoSource
fun <T> Assertion.Builder
Asserts that the outcome is TaskOutcome.NO_SOURCE.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
|
Maps this assertion to the task at the provided taskPath.