kotest-extensions / io.kotest.extensions.system / SystemOutWireListener / <init>

<init>

SystemOutWireListener(tee: Boolean = true)

A Kotest listener that facilities testing writes to standard out, by redirecting any data written to standard out to an internal buffer.

Users can query the written data by fetching the buffer by invoking output.

Parameters

tee - If true then any data written to standard out will be captured as well as written out. If false then the data written will be captured only.