We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 631b877 commit 146b383Copy full SHA for 146b383
tests/testsuite/cargo_install/help/stdout.term.svg
tests/testsuite/install.rs
@@ -2730,3 +2730,20 @@ fn uninstall_running_binary() {
2730
2731
"#]]).run();
2732
}
2733
+
2734
+#[cargo_test]
2735
+fn dry_run() {
2736
+ pkg("foo", "0.0.1");
2737
2738
+ cargo_process("-Z unstable-options install --dry-run foo")
2739
+ .masquerade_as_nightly_cargo(&["install::dry-run"])
2740
+ .with_stderr_data(str![[r#"
2741
+[UPDATING] `dummy-registry` index
2742
+[DOWNLOADING] crates ...
2743
+[DOWNLOADED] foo v0.0.1 (registry `dummy-registry`)
2744
+[INSTALLING] foo v0.0.1
2745
2746
+"#]])
2747
+ .run();
2748
+ assert_has_not_installed_exe(paths::cargo_home(), "foo");
2749
+}
0 commit comments