Module Interactive_test.Pauser

A Pauser.t is tool to include optional prompting pauses in test-scenarios.

type t = private {
  1. mutable extra_commands : Console.Prompt.item Internal_pervasives.list;
  2. default_end : [ `Sleep of Internal_pervasives.float ];
}
val make : ?default_end:[ `Sleep of Internal_pervasives.float ] -> Console.Prompt.item Internal_pervasives.list -> t

Add commands to the current pauser.

Pause the test according to state#interactivity (overridden with ~force:true), the pause displays the list of Easy_format.ts and prompts the user for commands (see add_commands).

Run a test-scenario and deal with potential errors according to state#test_interactivity.