override fun testFinished()

in executors/src/main/kotlin/TestListener.kt [52:64]


  override fun testFinished(description: Description?) {
    System.out.flush()
    System.err.flush()
    JUnitExecutors.output[JUnitExecutors.output.size - 1].apply {
      executionTime = System.currentTimeMillis() - startTime
      output = testOutputStream?.let {
        synchronized(it) { it.toString() }
      }.orEmpty()
        .replace("</errStream><errStream>".toRegex(), "")
        .replace("</outStream><outStream>".toRegex(), "")
    }
    System.setOut(ignoreStream)
  }