Skip to main content

Crate mfm_machine_test_support

Crate mfm_machine_test_support 

Source
Expand description

Shared contract tests for mfm-machine storage traits.

This crate stays intentionally small so storage backend crates can reuse the same conformance checks without creating dependency cycles back into the runtime.

§Examples

use mfm_machine::stores::ArtifactStore;
use mfm_machine_test_support::{artifact_store_contract_tests, init_test_observability};

async fn assert_artifact_store(store: &dyn ArtifactStore) {
    init_test_observability();
    artifact_store_contract_tests(store).await;
}

Functions§

artifact_store_contract_tests
Runs the shared ArtifactStore contract suite against a backend.
event_store_contract_tests
Runs the shared EventStore contract suite against a backend.
init_test_observability
Initializes a process-wide tracing subscriber for integration and contract tests.