In today’s new release of System Stubs there’s increased documentation for testing logging output, as well as a new class –
MultiplexOutput which allows the tapped output stream –
System.out to be directed to more than one place. This means that
OutputFactories.tapAndOutput() can be used, in conjunction with the
SystemOut class to direct the output both to a
TapStream and ALSO the console.
In other words you can capture the logs AND still have them appear.
It all sounds small, but these small improvements are intended to make the library more useful. Feedback via GitHub issues, please.