Provides methods for working with operating system shell.
Assert that the shell command's error output (stderr) matches the specified pattern.
Parameters:
pattern
String
Pattern to assert.
Assert that the shell command's output (stdout) matches the specified pattern.
Execute command
Spawn child process
command
Shell command to be executed, including arguments, if applicable.
Returns:
Object - Response object containing stdout, stderr, exit code, and signal (if process was terminated by a signal).
Object
Last updated 7 months ago
Was this helpful?