diff --git a/core/integration_tests_core/README.md b/core/integration_tests_core/README.md new file mode 100644 index 0000000..d44b7de --- /dev/null +++ b/core/integration_tests_core/README.md @@ -0,0 +1,12 @@ +This crate is dedicated to backend integration tests. + +Tests can be built using any supplied service implementation. +Various implementations are available in the `Extensions/components` crate. + +## Running Tests + +Integration tests are executed when running `cargo test` from the workspace folder. + +Alternatively they can be executed from any crate, using + +`cargo test --package integration_tests_core` diff --git a/core/integration_tests_core/src/lib.rs b/core/integration_tests_core/src/lib.rs index 7d18d35..8b13789 100644 --- a/core/integration_tests_core/src/lib.rs +++ b/core/integration_tests_core/src/lib.rs @@ -1,23 +1 @@ -// use std::ops::{Deref, DerefMut}; -// use components::{EphemeralRegistry, LocalBroadcaster, MemStore}; -// use libchat::{ -// AddressedEnvelope, ChatStorage, ContentData, Context, ConversationIdOwned, Introduction, -// StorageConfig, -// }; - -// fn send_and_verify( -// sender: &mut Context, -// receiver: &mut Context, -// convo_id: &str, -// content: &[u8], -// ) { -// let payloads = sender.send_content(convo_id, content).unwrap(); -// let payload = payloads.first().unwrap(); -// let received = receiver -// .handle_payload(&payload.data) -// .unwrap() -// .expect("expected content"); -// assert_eq!(content, received.data.as_slice()); -// assert!(!received.is_new_convo); -// }