MixTestInteractive.InteractiveMode (mix test.interactive v1.0.0) View Source
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.
Process command-line arguments.
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
Specs
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
.
Specs
command_line_arguments(GenServer.server(), [String.t()]) :: :ok
Process command-line arguments.
Specs
note_file_changed(GenServer.server()) :: :ok
Tell InteractiveMode that one or more files have changed.
Specs
process_command(GenServer.server(), String.t()) :: :ok | :quit
Process a command from the user.
Specs
start_link([option()]) :: GenServer.on_start()
Start the interactive mode server.