MixTestInteractive.PortRunner (mix test.interactive v1.0.0) View Source

Run the tasks in a new OS process via Ports.

On Unix-like operating systems, it runs the tests using a zombie_killer script as describe in https://hexdocs.pm/elixir/Port.html#module-zombie-operating-system-processes. It also enable ANSI output mode.

On Windows, mix is run directly and ANSI mode is not enabled, as it is not always supported by Windows command processors.

Link to this section Summary

Link to this section Types

Specs

os_type() :: {atom(), atom()}

Specs

runner() ::
  (String.t(), [String.t()], keyword() ->
     {Collectable.t(), exit_status :: non_neg_integer()})

Link to this section Functions

Link to this function

run(config, args, os_type \\ :os.type(), runner \\ &System.cmd/3)

View Source

Specs

Run tests based on the current configuration.