Skip to content

Commit f57cf9f

Browse files
Merge pull request #681 from kate-goldenring/feature-gate-e2e-tests-with-deps
feat: feature gate the e2e tests that require dependencies
2 parents d4678db + 2004d0f commit f57cf9f

File tree

4 files changed

+568
-544
lines changed

4 files changed

+568
-544
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
- name: Cargo Test
125125
run: |
126126
make test-unit
127-
make test-integration
127+
make test-e2e
128128
env:
129129
RUST_LOG: spin=trace
130130

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ which = "4.2.5"
6363
cargo-target-dep = { git = "https://github.com/fermyon/cargo-target-dep", rev = "b7b1989fe0984c0f7c4966398304c6538e52fe49" }
6464
vergen = { version = "7", default-features = false, features = [ "build", "git" ] }
6565

66+
[features]
67+
default = []
68+
e2e-tests = []
69+
6670
[workspace]
6771
members = [
6872
"crates/build",

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ test-unit:
2020

2121
.PHONY: test-integration
2222
test-integration:
23-
RUST_LOG=$(LOG_LEVEL) cargo test --test integration --no-fail-fast -- integration_tests::test_dependencies --nocapture
24-
RUST_LOG=$(LOG_LEVEL) cargo test --test integration --no-fail-fast -- --skip integration_tests::test_dependencies --nocapture --include-ignored
23+
RUST_LOG=$(LOG_LEVEL) cargo test --test integration --no-fail-fast -- --nocapture --include-ignored
24+
25+
.PHONY: test-e2e
26+
test-e2e:
27+
RUST_LOG=$(LOG_LEVEL) cargo test --test integration --features e2e-tests --no-fail-fast -- integration_tests::test_dependencies --nocapture
28+
RUST_LOG=$(LOG_LEVEL) cargo test --test integration --features e2e-tests --no-fail-fast -- --skip integration_tests::test_dependencies --nocapture --include-ignored
2529

2630
.PHONY: test-sdk-go
2731
test-sdk-go:

0 commit comments

Comments
 (0)