Skip to content

Commit

Permalink
Run runtime tests as part of cargo test - but ignored for now
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Levick <[email protected]>
  • Loading branch information
rylev committed Nov 8, 2023
1 parent 5c1a91a commit 60ddcb0
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 464 deletions.
77 changes: 64 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ hyper = { workspace = true }
sha2 = "0.10.1"
which = "4.2.5"
e2e-testing = { path = "crates/e2e-testing" }
runtime-tests = { path = "tests/runtime-tests" }

[build-dependencies]
cargo-target-dep = { git = "https://github.com/fermyon/cargo-target-dep", rev = "b7b1989fe0984c0f7c4966398304c6538e52fe49" }
Expand All @@ -107,7 +108,7 @@ llm-metal = ["llm", "spin-trigger-http/llm-metal"]
llm-cublas = ["llm", "spin-trigger-http/llm-cublas"]

[workspace]
members = ["crates/*", "sdk/rust", "sdk/rust/macro"]
members = ["crates/*", "sdk/rust", "sdk/rust/macro", "tests/runtime-tests"]

[workspace.dependencies]
anyhow = "1.0.75"
Expand Down
4 changes: 2 additions & 2 deletions crates/doctor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tempfile = "3.3.0"
terminal = { path = "../terminal" }
tokio = { version = "1", features = ["process"] }
toml = "0.8.2"
toml_edit = "0.20.2"
toml_edit = { version = "0.20.2", features = ["serde"] }
tracing = { workspace = true }

[dev-dependencies]
Expand All @@ -27,4 +27,4 @@ ui-testing = { path = "../ui-testing" }
[[test]]
name = "ui"
path = "tests/ui.rs"
harness = false
harness = false
2 changes: 0 additions & 2 deletions test-components/sqlite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ Tests the SQLite interface.

This test component expects the following to be true:
* It is given permission to open a connection to the "default" database.
* That database has one table named `test_data` with two text columns (`key` and `value`)
* `test_data` has at least one row with `key` set to `my_key` and value set to `my_value`.
* It does not have permission to access a database named "forbidden".
Loading

0 comments on commit 60ddcb0

Please sign in to comment.