From d0f6bd91eb895fc9ab956e85d362fa7eed858b33 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Fri, 11 Jan 2013 15:23:05 -0700 Subject: [PATCH] flush the output --- src/main/scala/SbtTapReporting.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/scala/SbtTapReporting.scala b/src/main/scala/SbtTapReporting.scala index 14b0576..e828c2d 100644 --- a/src/main/scala/SbtTapReporting.scala +++ b/src/main/scala/SbtTapReporting.scala @@ -52,7 +52,10 @@ class SbtTapListener extends TestsListener { fileWriter.close() } - private def writeTapFields(s: Any*) { fileWriter.write(s.mkString("", " ", "\n")) } + private def writeTapFields(s: Any*) { + fileWriter.write(s.mkString("", " ", "\n")) + fileWriter.flush() + } private def stackTraceForError(t: Throwable): String = { val sw = new StringWriter() -- 2.45.2