Skip to content

Commit d4ac43f

Browse files
committed
tests: gate e2e tests behind required-features flag
cargo test --workspace no longer runs the e2e binary by default, since rage and passage won't be installed in most dev environments.
1 parent 6d3c1c5 commit d4ac43f

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Build plugin binary
5656
run: cargo build -p age-plugin-argon2-cli
5757
- name: Run e2e tests
58-
run: cargo test --test e2e
58+
run: cargo test -p age-plugin-argon2-cli --features e2e --test e2e
5959

6060
deny:
6161
runs-on: ubuntu-latest

age-plugin-argon2-cli/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ clap = { version = "4", features = ["derive"] }
1919
secrecy = "0.10"
2020
thiserror = "1.0"
2121

22+
[features]
23+
e2e = []
24+
25+
[[test]]
26+
name = "e2e"
27+
required-features = ["e2e"]
28+
2229
[dev-dependencies]
2330
tempfile = "3"
2431
rexpect = "0.6"

0 commit comments

Comments
 (0)