From 6f739dba8db01c71fc2c8e3afff81cfeaf55ecca Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 22 Jan 2025 09:21:42 -0800 Subject: [PATCH] add integration testing --- Cargo.lock | 9 +++++++++ Cargo.toml | 1 + integration-testing/Cargo.toml | 9 +++++++++ .../tests/replay.rs => integration-testing/src/main.rs | 0 strafe-client/src/main.rs | 3 --- strafe-client/src/tests/mod.rs | 1 - 6 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 integration-testing/Cargo.toml rename strafe-client/src/tests/replay.rs => integration-testing/src/main.rs (100%) delete mode 100644 strafe-client/src/tests/mod.rs diff --git a/Cargo.lock b/Cargo.lock index 73b1e0d9..ae74aea0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -965,6 +965,15 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "integration-testing" +version = "0.1.0" +dependencies = [ + "strafesnet_common", + "strafesnet_physics", + "strafesnet_snf", +] + [[package]] name = "itertools" version = "0.13.0" diff --git a/Cargo.toml b/Cargo.toml index cca86f0f..f2603a8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ members = [ "engine/physics", "engine/session", "engine/settings", + "integration-testing", "lib/bsp_loader", "lib/common", "lib/deferred_loader", diff --git a/integration-testing/Cargo.toml b/integration-testing/Cargo.toml new file mode 100644 index 00000000..96057f37 --- /dev/null +++ b/integration-testing/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "integration-testing" +version = "0.1.0" +edition = "2021" + +[dependencies] +strafesnet_common = { version = "0.5.2", path = "../lib/common", registry = "strafesnet" } +strafesnet_physics = { version = "0.1.0", path = "../engine/physics", registry = "strafesnet" } +strafesnet_snf = { path = "../lib/snf", registry = "strafesnet" } diff --git a/strafe-client/src/tests/replay.rs b/integration-testing/src/main.rs similarity index 100% rename from strafe-client/src/tests/replay.rs rename to integration-testing/src/main.rs diff --git a/strafe-client/src/main.rs b/strafe-client/src/main.rs index efd75d8c..65beb0f0 100644 --- a/strafe-client/src/main.rs +++ b/strafe-client/src/main.rs @@ -6,9 +6,6 @@ mod compat_worker; mod physics_worker; mod graphics_worker; -#[cfg(test)] -mod tests; - const TITLE:&'static str=concat!("Strafe Client v",env!("CARGO_PKG_VERSION")); fn main(){ diff --git a/strafe-client/src/tests/mod.rs b/strafe-client/src/tests/mod.rs deleted file mode 100644 index 6160572f..00000000 --- a/strafe-client/src/tests/mod.rs +++ /dev/null @@ -1 +0,0 @@ -mod replay;