Registry / testing / assert-cmd

assert-cmd

JSON →
library2.2.2rscratesunverified

Test CLI applications by running them as subprocesses and asserting on their output and exit status.

testingcli
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.

use assert_cmd::Command;

Runs a CLI binary and asserts that it succeeds and prints help text.

use assert_cmd::Command; let mut cmd = Command::cargo_bin("my_cli").unwrap(); let assert = cmd.arg("--help").assert(); assert.success().stdout(predicates::str::contains("Usage"));
Debug
Known footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources