View Source MixTestInteractive.InteractiveMode (mix test.interactive v4.1.2)

Server for interactive mode.

Processes commands from the user and requests to run tests due to file changes. This ensures that commands cannot be processed while tests are already running.

Any commands that come in while the tests are running will be processed once the test run has completed.

Summary

Functions

Returns a specification to start this module under a supervisor.

Tell InteractiveMode that one or more files have changed.

Process a command from the user.

Start the interactive mode server.

Types

option()

@type option() :: {:config, MixTestInteractive.Config.t()} | {:name | String.t()}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

note_file_changed(server \\ __MODULE__)

@spec note_file_changed(GenServer.server()) :: :ok

Tell InteractiveMode that one or more files have changed.

process_command(server \\ __MODULE__, command)

@spec process_command(GenServer.server(), String.t()) :: :ok

Process a command from the user.

start_link(options)

@spec start_link([option()]) :: GenServer.on_start()

Start the interactive mode server.