Skip to content

Commit

Permalink
test: Show lockfile behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
epage authored and taiki-e committed Feb 21, 2024
1 parent 6350a49 commit ababd7d
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/.cspell/rust-dependencies.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions tests/fixtures/rust-version/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/fixtures/rust-version/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ c = []

[dependencies]
member1 = { path = "member1", optional = true }
argfile = "0.1.5"

[dev-dependencies]

Expand Down
4 changes: 2 additions & 2 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ fn version_range() {
",
);
cargo_hack(["check", "--version-range", "..=1.66", "--version-step", "2", "--workspace"])
.assert_success("rust-version")
.assert_failure("rust-version")
.stderr_contains(
"
running `rustup run 1.63 cargo check` on member1 (1/7)
Expand Down Expand Up @@ -1488,7 +1488,7 @@ fn rust_version() {
",
);
cargo_hack(["check", "--rust-version", "--workspace"])
.assert_success("rust-version")
.assert_failure("rust-version")
.stderr_contains(
"
running `rustup run 1.63 cargo check` on member1 (1/4)
Expand Down

0 comments on commit ababd7d

Please sign in to comment.