mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Simplify a bit the test dependencies
So compiling the tests can be a bit faster
This commit is contained in:
parent
7a7a21ca54
commit
0ba3a14f8a
4 changed files with 5 additions and 4 deletions
|
@ -89,7 +89,7 @@ Some macro like `assert_eq` are defined to look similar o the rust equivalent.
|
|||
To run the test, you must make sure to first build the slint-cpp shared library:
|
||||
|
||||
```
|
||||
cargo build --lib -p slint-cpp --features testing && cargo test -p test-driver-cpp --
|
||||
cargo build --lib -p slint-cpp --features testing --no-default-features && cargo test -p test-driver-cpp --
|
||||
```
|
||||
|
||||
You can omit the first part that compiles slint-cpp if you only want to test the compiler and
|
||||
|
|
|
@ -14,7 +14,7 @@ path = "main.rs"
|
|||
name = "test-driver-cpp"
|
||||
|
||||
[dependencies]
|
||||
slint-cpp = { path = "../../../api/cpp", features = ["testing"] }
|
||||
slint-cpp = { path = "../../../api/cpp", default-features = false, features = ["testing"] }
|
||||
|
||||
[dev-dependencies]
|
||||
i-slint-compiler = { path = "../../../internal/compiler", features = ["cpp", "display-diagnostics"] }
|
||||
|
|
|
@ -15,7 +15,8 @@ name = "test-driver-nodejs"
|
|||
|
||||
[dev-dependencies]
|
||||
test_driver_lib = { path = "../driverlib" }
|
||||
slint-node = { path = "../../../api/node/native" }
|
||||
# Require `artifact` dependencies tracked by rust RFC 3028
|
||||
#slint-node = { path = "../../../api/node/native", artifact = ["cdylib"] }
|
||||
lazy_static = "1.4.0"
|
||||
which = "4.0.2"
|
||||
tempfile = "3.2"
|
||||
|
|
|
@ -17,7 +17,7 @@ name = "test-driver-rust"
|
|||
build-time = ["i-slint-compiler", "spin_on"]
|
||||
|
||||
[dependencies]
|
||||
slint = { path = "../../../api/rs/slint" }
|
||||
slint = { path = "../../../api/rs/slint", default-features = false, features = ["std", "compat-0-2-0"] }
|
||||
i-slint-backend-testing = { path = "../../../internal/backends/testing" }
|
||||
|
||||
[build-dependencies]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue