View Source MixTestInteractive.InteractiveMode (mix test.interactive v1.2.0)

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.

Link to this section 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.

Link to this section Types

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

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

command_line_arguments(server \\ __MODULE__, cli_args)

View Source
@spec command_line_arguments(GenServer.server(), [String.t()]) :: :ok

Process command-line arguments.

Link to this function

note_file_changed(server \\ __MODULE__)

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

Tell InteractiveMode that one or more files have changed.

Link to this function

process_command(server \\ __MODULE__, command)

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

Process a command from the user.

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

Start the interactive mode server.