I could make it work with capture_log + import ExUnit.CaptureLog + require Logger inside both modules + actually using Logger.debug (or any other level) and not IO.puts but curiously enough I wasn’t able to make it work with capture_io like in your original script. Also tried with with_io but no dice again. Interesting.






















