Skip to content

Commit b6e0f7e

Browse files
committed
docs: Migrating from assert_cli
Fixes assert-rs#30
1 parent 4cf3ef0 commit b6e0f7e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/lib.rs

+13
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@
3333
//! [tempfile]: https://crates.io/crates/tempfile
3434
//! [duct]: https://crates.io/crates/duct
3535
//! [assert_fs]: https://crates.io/crates/assert_fs
36+
//!
37+
//! ## Migrating from `assert_cli` v0.6
38+
//!
39+
//! `assert_cli` is the successor to `assert_cli`:
40+
//! - More flexible, reusable assertions (also used by `assert_fs`).
41+
//! - Can integrate with other process-management crates, like `duct`.
42+
//! - Addresses several architectural problems.
43+
//!
44+
//! Key points in migrating from `assert_cli`:
45+
//! - `std::prcoess::Command` is extended with traits rather than being wrapping in custom logic.
46+
//! - The command-under-test is run eagerly, with assertions happening immediately.
47+
//! - `success()` is not implicit and requires being explicitly called.
48+
//! - `stdout`/`stderr` aren't automatically trimmed before being passed to the `Predicate`.
3649
3750
#![warn(missing_docs)]
3851

0 commit comments

Comments
 (0)