Skip to content

Commit

Permalink
test: Prevent CI failure due to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kenoss committed Oct 5, 2024
1 parent 754df8b commit 1633acc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
crate: just
version: '1.34.0'

- run: just test
- run: just test-ci

check-strict:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ proc-macro = true

[features]
default = []
test_smithay = []

[[test]]
name = "tests"
Expand Down
5 changes: 4 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ run *ARGS:
cargo run {{ARGS}}

test *ARGS:
cargo test --features test_smithay {{ARGS}}

test-ci *ARGS:
cargo test {{ARGS}}

nextest-run *ARGS:
cargo nextest run {{ARGS}}
cargo nextest run --features test_smithay {{ARGS}}
5 changes: 5 additions & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ fn ui_test() {
let t = trybuild::TestCases::new();
t.pass("tests/ui/pass_*.rs");
t.compile_fail("tests/ui/fail*.rs");
#[cfg(feature = "test_smithay")]
{
t.pass("tests/ui/smithay/pass_*.rs");
t.compile_fail("tests/ui/smithay/fail*.rs");
}
}
File renamed without changes.

0 comments on commit 1633acc

Please sign in to comment.