[erlang-questions] How to capture all output to console during Common Test?

Marco Molteni marco.molteni@REDACTED
Sun Jun 11 08:32:46 CEST 2017


On 9 Jun 2017, at 18:06, Max Lapshin <max.lapshin@REDACTED> wrote:

> I'm running ct_run  and want somehow to capture all output made to console (io:format,  ct:print).  Is it possible?

I wrote mock_io [1] to capture/inject I/O for EUnit. If it doesn't work out of the box with CT, it should be easy to adapt, I'll be happy to accept patches :-)

marco

[1] https://github.com/marco-m/mock_io


More information about the erlang-questions mailing list