Module command

Source
Expand description

Launching test commands for Zebra integration and acceptance tests.

Modules§

arguments 🔒
to_regex
Convenience traits for converting to [Regex] and [RegexSet].

Structs§

Arguments
Helper type to keep track of arguments for spawning a process.
TestChild
A test command child process.
TestOutput
Test command output logs.
TestStatus
Test command exit status information.

Constants§

NO_MATCHES_REGEX_ITER
A CollectRegexSet iterator that never matches anything.

Traits§

CommandExt
Wrappers for Command methods to integrate with zebra_test.
ContextFrom
Add context to an error report
IteratorDebug
A super-trait for Iterator + Debug.
TestDirExt
Extension trait for methods on tempdir::TempDir for using it as a test directory with an arbitrary command.

Functions§

check_failure_regexes
Checks command output log line from cmd against a failure_regexes regex set, and returns an error if any regex matches. The line is skipped if it matches ignore_regexes.
test_cmd
Runs a command
write_to_test_logs 🔒
Write line to stdout, so it can be seen in the test logs.