Expand description
Step library for running subprocesses as part of scenarios
Re-exports§
Modules§
- exit_
code_ is - Check that an executed command returns a specific exit code
- exit_
code_ is_ nonzero - Check that an executed command did not succeed
- exit_
code_ is_ not - Check that an executed command returns a specific exit code
- exit_
code_ is_ zero - Check that an executed command succeeded
- helper_
script - Ensure the given data file is available as a script in the data dir
- helper_
srcdir_ path - Ensure that the base source directory is in the
PATHfor subsequent commands being run. - run
- Run the given command, ensuring it succeeds
- run_in
- Run the given command in the given subpath of the data directory, ensuring that it succeeds.
- set_
environment_ variable - Set an environment variable for future commands
- stderr_
contains - Check that the stderr of the command contains a given string
- stderr_
doesnt_ contain - Check that the stderr of the command does not contain a given string
- stderr_
doesnt_ match_ regex - Check that the stderr of the command does not match a given regular expression
- stderr_
is - Check that the stderr of the command matches exactly
- stderr_
isnt - Check that the stderr of the command is exactly not a given value
- stderr_
matches_ regex - Check that the stderr of the command matches a given regular expression
- stdin_
from_ file - Next step to run command redirects stdout to a named file.
- stdin_
is - Next step to run command feeds text to its standard input.
- stdout_
contains - Check that the stdout of the command contains a given string
- stdout_
doesnt_ contain - Check that the stdout of the command does not contain a given string
- stdout_
doesnt_ match_ regex - Check that the stdout of the command does not match a given regular expression
- stdout_
is - Check that the stdout of the command matches exactly
- stdout_
isnt - Check that the stdout of the command is exactly not a given value
- stdout_
matches_ regex - Check that the stdout of the command matches a given regular expression
- try_
to_ run - Run the given command
- try_
to_ run_ in - Run the given command in the given subpath of the data directory
- unset_
environment_ variable - Unset an environment variable so that it’s not given to future commands
Structs§
- Runcmd
- The Runcmd context gives a step function access to the ability to run subprocesses as part of a scenario. These subprocesses are run with various environment variables set, and we record the stdout/stderr of the most recent-to-run command for testing purposes.