diff --git a/tests/tests.wake b/tests/tests.wake index 6e9269bb5..2be715ceb 100644 --- a/tests/tests.wake +++ b/tests/tests.wake @@ -182,8 +182,24 @@ def runTest (testScript: Path): Result Unit Error = True True -> Pass Unit False False -> Pass Unit True False -> + def _ = + "{testName} Failed! Stdout: \n{jobStdout}" + | printlnLevel logWarning + + def _ = + "{testName} Failed! Stderr: \n{jobStderr}" + | printlnLevel logWarning + Fail (makeError "Test failed. Expected: Ok, Actual: {format testJob.getJobStatus}. See above for details") False True -> + def _ = + "{testName} Failed! Stdout: \n{jobStdout}" + | printlnLevel logWarning + + def _ = + "{testName} Failed! Stderr: \n{jobStderr}" + | printlnLevel logWarning + Fail (makeError "Test failed. Expected: Err, Actual: {format testJob.getJobStatus}. See above for details") def expectEqualOutput (stream: String) (expected: Option String) (actual: String): Result Unit Error =