Skip to content

Commit

Permalink
Test: Add new regression test for #14
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
  • Loading branch information
PaulDance committed Feb 3, 2024
1 parent a75aa32 commit 59f0f57
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/ship.rs
Original file line number Diff line number Diff line change
@@ -853,3 +853,21 @@ fn validate_ship_weirdpackagenames_supported() {
);
assert_not_installed("--pkg");
}

/// See #14.
#[cargo_test]
fn validate_ship_cargotermcolor_supported() {
let _reg = init_registry();
fake_install_self();
fake_publish("pkg", "0.0.0");
write_user_config(&["[packages]", "pkg = '*'"]);

cargo_liner()
.env("CARGO_TERM_COLOR", "always")
.args(["ship", "--no-self"])
.assert()
.success()
.stdout_eq("")
.stderr_matches_path("tests/fixtures/ship/validate_ship_features.stderr");
assert_installed("pkg");
}

0 comments on commit 59f0f57

Please sign in to comment.