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

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

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

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

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.