ExUnit tests on methods that call System.halt

I am writing a CLI using Optimus.

Internally Optimus parses the args and then may spit things out to the console. I am using capture_io for testing what is returned. However the issue I am running into is internally Optimus may do an IO.puts(“bla”) then call a halt. This is stopping the test suite from running.

Is there something I can do to have ExUnit continue?

1 Like