Skip to content

Commit

Permalink
test: split out sharable test helper code
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Dec 15, 2024
1 parent 6a0aef7 commit a9ad56c
Show file tree
Hide file tree
Showing 11 changed files with 418 additions and 371 deletions.

This file was deleted.

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

22 changes: 20 additions & 2 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ members = [
"crates/ws-auth",
"crates/wykies-client-core",
"crates/wykies-server",
"crates/wykies-server-test-helper",
"crates/wykies-shared",
"crates/wykies-time",
]
Expand Down Expand Up @@ -62,6 +63,7 @@ web-time = "1.1.0"
ws-auth = { version = "*", path = "crates/ws-auth" }
wykies-client-core = { version = "*", path = "crates/wykies-client-core" }
wykies-server = { version = "*", path = "crates/wykies-server" }
wykies-server-test-helper = { version = "*", path = "crates/wykies-server-test-helper" }
wykies-shared = { version = "*", path = "crates/wykies-shared" }
wykies-time = { version = "*", path = "crates/wykies-time" }

Expand Down
4 changes: 1 addition & 3 deletions crates/chat-app-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ wykies-server.workspace = true
wykies-shared = { workspace = true, features = ["server_only"] }

[dev-dependencies]
argon2 = { workspace = true, features = ["std"] }
chrono.workspace = true
ewebsock.workspace = true
insta = { workspace = true, features = ["serde", "redactions", "json"] }
rand = { workspace = true, features = ["std_rng"] }
secrecy.workspace = true
serde_json.workspace = true
sqlx = { workspace = true, features = ["runtime-tokio", "macros", "mysql", "chrono", "migrate"] }
uuid = { workspace = true, features = ["v4", "serde"] }
wykies-client-core = { workspace = true, features = ["expose_test"] }
wykies-server-test-helper.workspace = true
wykies-time = { workspace = true, features = ["mysql"] }

[features]
Expand Down
3 changes: 1 addition & 2 deletions crates/chat-app-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,15 @@ mod warning_suppress {

#[cfg(test)] // Included to prevent unused crate warning
mod warning_suppress_test {
use argon2 as _;
use chrono as _;
use ewebsock as _;
use insta as _;
use rand as _;
use secrecy as _;
use serde_json as _;
use sqlx as _;
use uuid as _;
use wykies_client_core as _;
use wykies_server_test_helper as _;
use wykies_time as _;
}

Expand Down
Loading

0 comments on commit a9ad56c

Please sign in to comment.