Milestone: 2 — CI / infra base
Type: tests
Priority: medium
There are unit tests (#[test]) in pure modules (gift_wrap, fsm, keys, nym, file_enc, …) but no rust/tests/ directory with end-to-end tests covering the full path: build a Message → wrap (NIP-44 v2) → publish to a mock relay → receive → unwrap → dispatch.
Scope
rust/tests/transport.rs: full wrap/publish/receive/unwrap loop against a local nostr relay mock.
rust/tests/dispatcher.rs: feed crafted Kind 14 events through dispatch_mostro_message and assert the trade DB + order book transitions for each action.
- Gate in CI.
Milestone: 2 — CI / infra base
Type: tests
Priority: medium
There are unit tests (
#[test]) in pure modules (gift_wrap,fsm,keys,nym,file_enc, …) but norust/tests/directory with end-to-end tests covering the full path: build aMessage→ wrap (NIP-44 v2) → publish to a mock relay → receive → unwrap → dispatch.Scope
rust/tests/transport.rs: full wrap/publish/receive/unwrap loop against a local nostr relay mock.rust/tests/dispatcher.rs: feed crafted Kind 14 events throughdispatch_mostro_messageand assert the trade DB + order book transitions for each action.