File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 33
33
//! [tempfile]: https://crates.io/crates/tempfile
34
34
//! [duct]: https://crates.io/crates/duct
35
35
//! [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`.
36
49
37
50
#![ warn( missing_docs) ]
38
51
You can’t perform that action at this time.
0 commit comments