]> git.proxmox.com Git - cargo.git/commit
feat(test-support): Share `Project::from_template` with all cargo tests
authorEd Page <eopage@gmail.com>
Mon, 18 Apr 2022 22:08:43 +0000 (17:08 -0500)
committerEd Page <eopage@gmail.com>
Thu, 28 Apr 2022 01:53:25 +0000 (20:53 -0500)
commit0d135a0b434a26a9670e27d1ff7b12b9902031e1
tree83617852b9e9e3bbd3429b2341c4f8f56a2a249b
parent30451d2ffc4ff0bcd33d01c4fef4f8afcec7a0dc
feat(test-support): Share `Project::from_template` with all cargo tests

This was written for `cargo_add.rs`, based on `snapbox`.  This allows
creating a test from a known reproduction case or easily debugging on an
existing test case.
crates/cargo-test-support/src/lib.rs
tests/testsuite/cargo_add.rs