failure.assertHasDescription("/ by zero");
}
@Test
public void reportsTaskActionExecutionFailsWithRuntimeException() {
File buildFile = getTestBuildFile("task-action-execution-failure.gradle");
<BUG>GradleExecutionFailure failure = usingBuildFile(buildFile).runTasksAndExpectFailure("brokenClosure");
</BUG>
failure.assertHasFileName(String.format("Build file '%s'", buildFile));
failure.assertHasLineNumber(3);
failure.assertHasContext("Execution failed for task ':brokenClosure'");

failure.assertHasDescription("/ by zero");
}
@Test
public void reportsTaskActionExecutionFailsWithRuntimeException() {
File buildFile = getTestBuildFile("task-action-execution-failure.gradle");
ExecutionFailure failure = usingBuildFile(buildFile).withTasks("brokenClosure").runWithFailure();
failure.assertHasFileName(String.format("Build file '%s'", buildFile));
failure.assertHasLineNumber(3);
failure.assertHasContext("Execution failed for task ':brokenClosure'");
