Merge a crate's tests/*.rs into one tests/it integration binary
When to use#
A task asks for one integration test program per crate, with no tests/*.rs left at the top of crates/ rmaestro-tui task TSK-7fwbg8: 215 tests before and after, all names mapped, proved. Amendment AMD-60nbgq. Note from the run: "mod common;, use include_str! on golden files, use insta snapshots, or build temp names from the pid. Steps#
rvow prove <task> once before any edit, to record the red. Save the baseline with cargo nextest list --workspace --message-format oneline.rgit mv. Move tests/common/mod.rs to tests/it/common/mod.rs. Move tests/golden to tests/it/golden. Moved together, the relative include_str! paths still resolve, so they need no edit. //! line, one mod common;, then one mod <name>; per file in alphabetical order.mod common; and use crate::common::.... Also fix fully qualified common:: paths.it__<old name> with rgit mv. Only the source: header line in each .snap may change. Diff every .snap against HEAD.#[global_allocator] or getrusage(RUSAGE_SELF) as separate programs.INSTA_UPDATE=no cargo test --locked -p <crate>, then cargo nextest list --locked -p <crate> --message-format oneline. Each old <crate>::<file> <test> must appear as <crate>::it <file>::<test>. Then run fmt, clippy with -D warnings, and rvow prove <task> again.rvow amend --reason "move only: ...". Never run rvow accept or rvow confirm.Evidence#
rvow amend records the drift of the whole change, not just my task." It also lists files moved by other sessions, and the user must confirm it later.