test
Test this command, returning a result that captures the output and result status code.
Note that only output printed with echo will be captured. Anything printed with print or println is not.
Parameters
The command line to send to the command
Content of stdin that will be read by prompt options. Multiple inputs should be separated by \n
.
A map of environment variable name to value for envvars that can be read by the command
Set to true to include the environment variables from the system in addition to those defined in envvars
Defaults to no colored output; set to AnsiLevel.TRUECOLOR to include ANSI codes in the output.
The width of the terminal, used to wrap text
The height of the terminal
Test this command, returning a result that captures the output and result status code.
Note that only output printed with echo will be captured. Anything printed with print or println is not.
Parameters
The command line to send to the command
Content of stdin that will be read by prompt options. Multiple inputs should be separated by \n
.
A map of environment variable name to value for envvars that can be read by the command
Set to true to include the environment variables from the system in addition to those defined in envvars
Defaults to no colored output; set to AnsiLevel.TRUECOLOR to include ANSI codes in the output.
The width of the terminal, used to wrap text
The height of the terminal
Whether to enable hyperlink support in the terminal
Whether the output is interactive
Whether the input is interactive