public interface ExecutionResult
| Modifier and Type | Method and Description |
|---|---|
ExecutionResult |
assertHasPostBuildOutput(java.lang.String expectedOutput)
Assert that the given message appears after the build result message.
|
ExecutionResult |
assertNotOutput(java.lang.String expectedOutput)
Asserts that this result does not include the given log message anywhere in the build output.
|
ExecutionResult |
assertOutputContains(java.lang.String expectedOutput)
Asserts that this result includes the given non-error log message.
|
ExecutionResult |
assertTaskNotExecuted(java.lang.String taskPath)
Asserts that the given task has not been executed.
|
ExecutionResult |
assertTaskNotSkipped(java.lang.String taskPath)
Asserts that the given task has not been skipped.
|
ExecutionResult |
assertTasksExecuted(java.lang.Object... taskPaths)
Asserts that exactly the given set of tasks have been executed in any order.
|
ExecutionResult |
assertTasksExecutedAndNotSkipped(java.lang.Object... taskPaths)
Asserts that exactly the given set of tasks have been executed in any order and none of the tasks were skipped.
|
ExecutionResult |
assertTaskSkipped(java.lang.String taskPath)
Asserts the given task has been skipped.
|
ExecutionResult |
assertTasksNotSkipped(java.lang.Object... taskPaths)
Asserts that exactly the given set of tasks have not been skipped.
|
ExecutionResult |
assertTasksSkipped(java.lang.Object... taskPaths)
Asserts that exactly the given set of tasks have been skipped.
|
GroupedOutputFixture |
getGroupedOutput()
Returns a fixture that parses the output and forms them into the expected groups
|
java.lang.String |
getOutput()
Stdout of the Gradle execution, normalized to use new-line char as line separator.
|
java.lang.String |
getPlainTextOutput()
Stdout of the Gradle execution, with ANSI characters interpreted and text attributes discarded.
|
java.lang.String getOutput()
You should avoid using this method as it couples the tests to a particular layout for the console. Instead use the more descriptive assertion methods on this class.
GroupedOutputFixture getGroupedOutput()
java.lang.String getPlainTextOutput()
ExecutionResult assertTaskNotExecuted(java.lang.String taskPath)
ExecutionResult assertTaskNotSkipped(java.lang.String taskPath)
ExecutionResult assertTaskSkipped(java.lang.String taskPath)
ExecutionResult assertTasksExecutedAndNotSkipped(java.lang.Object... taskPaths)
ExecutionResult assertTasksExecuted(java.lang.Object... taskPaths)
ExecutionResult assertTasksSkipped(java.lang.Object... taskPaths)
ExecutionResult assertTasksNotSkipped(java.lang.Object... taskPaths)
ExecutionResult assertOutputContains(java.lang.String expectedOutput)
assertHasPostBuildOutput(String) instead).expectedOutput - The expected log message, with line endings normalized to a newline character.ExecutionResult assertNotOutput(java.lang.String expectedOutput)
expectedOutput - The expected log message, with line endings normalized to a newline character.ExecutionResult assertHasPostBuildOutput(java.lang.String expectedOutput)
expectedOutput - The expected log message, with line endings normalized to a newline character.