Skip to content

Commit 179bffb

Browse files
committed
[integration-tests] use workspace dependencies
1 parent b476433 commit 179bffb

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ bytes = "1.7.1"
2424
camino = "1.1.9"
2525
camino-tempfile = "1.1.1"
2626
cargo_metadata = "0.18.1"
27+
# We specify default-no-update here because if users just run:
28+
#
29+
# cargo build --no-default-features --features default-no-update
30+
#
31+
# then cargo will unify features for cargo-nextest, and it will be built with self-update enabled.
32+
# We could ask distributors to always include `--package cargo-nextest` instead, but they're likely
33+
# to forget. None of our current tests depend on self-update, so just don't include it by default.
34+
cargo-nextest = { path = "cargo-nextest", default-features = false, features = [
35+
"default-no-update",
36+
] }
2737
cfg-if = "1.0.0"
2838
# The default features for color-eyre include tracing support -- for now we don't use that support.
2939
color-eyre = { version = "0.6.3", default-features = false }

integration-tests/Cargo.toml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,20 @@ path = "test-helpers/cargo-nextest-dup.rs"
1717
# then cargo will unify features for cargo-nextest, and it will be built with self-update enabled.
1818
# We could ask distributors to always include `--package cargo-nextest` instead, but they're likely
1919
# to forget. None of our current tests depend on self-update, so just don't include it by default.
20-
cargo-nextest = { path = "../cargo-nextest", default-features = false, features = [
21-
"default-no-update",
22-
] }
23-
# we don't use the tracing support
24-
color-eyre = { version = "0.6.3", default-features = false }
25-
clap = { version = "4.5.17", features = ["derive", "env"] }
26-
enable-ansi-support = "0.2.1"
20+
cargo-nextest.workspace = true
21+
color-eyre.workspace = true
22+
clap = { workspace = true, features = ["env"] }
23+
enable-ansi-support.workspace = true
2724
nextest-workspace-hack.workspace = true
2825

2926
[dev-dependencies]
30-
camino = "1.1.9"
31-
camino-tempfile = "1.1.1"
32-
cfg-if = "1.0.0"
27+
camino-tempfile.workspace = true
28+
camino.workspace = true
29+
cfg-if.workspace = true
3330
fixture-data.workspace = true
31+
insta.workspace = true
3432
nextest-metadata.workspace = true
35-
pathdiff = { version = "0.2.1", features = ["camino"] }
36-
regex = "1.10.6"
37-
serde_json = "1.0.128"
38-
insta = { version = "1.40.0", default-features = false }
33+
pathdiff.workspace = true
34+
regex.workspace = true
35+
serde_json.workspace = true
3936
target-spec.workspace = true

0 commit comments

Comments
 (0)