From: Charles McGarvey Date: Fri, 11 Jan 2013 22:23:05 +0000 (-0700) Subject: flush the output X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=d0f6bd91eb895fc9ab956e85d362fa7eed858b33;p=chaz%2Fsbt-tap flush the output --- 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()