Skip to content

Rust E2E integration tests: wrap → publish → receive → unwrap (mock mostrod) #153

Description

@ermeme

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: protocolMostro protocol, transport, dispatcherpriority: mediumMedium prioritytestsTest scaffolding, unit/integration tests

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions