Registry / testing / assert-cli

assert-cli

JSON →
library0.6.3rscratesunverified

Test CLI applications by running commands and asserting on their output.

# Cargo.toml [dependencies] assert_cli = "0.6.3"
INSTALL
IMPORT
SIG · ASSERT-CLI
A
assert-cli
testingrustv0.6.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Assert
use assert_cli::Assert;

Test that a command succeeds and its output contains expected text.

use assert_cli::Assert; Assert::command(&["echo", "hello"]) .succeeds() .stdout().contains("hello") .unwrap();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
assert-cli — cargo add assert-cli · libregistry