Skip to main content

Module assert

Module assert 

Source
Expand description

Assert module for CLI testing

Provides asserters for validating command execution results.

Structs§

AssertResult
Result of an assertion
ExecuteAsserter
Asserter for validating execution results
SnapshotManager
Snapshot manager for comparing test outputs against saved snapshots

Traits§

Asserter

Functions§

and
Combine multiple asserters with AND logic (all must pass)
code
Assert specific exit code
failure
Assert command failed (non-zero exit code)
or
Combine multiple asserters with OR logic (at least one must pass)
snapshot
Create a snapshot asserter
stderr
Create stderr asserter builder
stdout
Create stdout asserter builder
success
Assert command succeeded (exit code 0)