From fb554bcd43b43653554db4b6302e7f153bb1ada6 Mon Sep 17 00:00:00 2001 From: jbesraa Date: Mon, 2 Sep 2024 16:47:44 +0300 Subject: [PATCH] Add integration tests project Adds an initial integration tests project to the `roles` workspace. This crate should hold tests related to the other crates in the `roles` workspace, allowing us to write integration tests for those. --- roles/Cargo.lock | 4 ++++ roles/Cargo.toml | 2 +- roles/tests-integration/Cargo.toml | 9 +++++++++ roles/tests-integration/src/bin/run.rs | 1 + roles/tests-integration/tests/common/mod.rs | 0 5 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 roles/tests-integration/Cargo.toml create mode 100644 roles/tests-integration/src/bin/run.rs create mode 100644 roles/tests-integration/tests/common/mod.rs diff --git a/roles/Cargo.lock b/roles/Cargo.lock index b5703c236..03c5acf6c 100644 --- a/roles/Cargo.lock +++ b/roles/Cargo.lock @@ -1244,6 +1244,10 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "integration-test" +version = "0.1.0" + [[package]] name = "io-lifetimes" version = "1.0.11" diff --git a/roles/Cargo.toml b/roles/Cargo.toml index 109cfd0ee..a36acb607 100644 --- a/roles/Cargo.toml +++ b/roles/Cargo.toml @@ -22,7 +22,7 @@ members = [ "test-utils/sv1-mining-device", "translator", "jd-client", - "jd-server", + "jd-server", "tests-integration", ] [profile.dev] diff --git a/roles/tests-integration/Cargo.toml b/roles/tests-integration/Cargo.toml new file mode 100644 index 000000000..8c3e2a374 --- /dev/null +++ b/roles/tests-integration/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "integration-test" +version = "0.1.0" +edition = "2021" + +[dependencies] + +[[bin]] +name = "run" diff --git a/roles/tests-integration/src/bin/run.rs b/roles/tests-integration/src/bin/run.rs new file mode 100644 index 000000000..f328e4d9d --- /dev/null +++ b/roles/tests-integration/src/bin/run.rs @@ -0,0 +1 @@ +fn main() {} diff --git a/roles/tests-integration/tests/common/mod.rs b/roles/tests-integration/tests/common/mod.rs new file mode 100644 index 000000000..e69de29bb