wireframe_testing
Helper utilities for exercising
wireframe applications in tests without
opening real sockets. The crate runs a WireframeApp against in-memory duplex
streams, captures every frame the app emits, and provides small helpers for
encoding or decoding frames so assertions stay focused on behaviour rather than
plumbing.
- Drive an app with length-delimited frames or bincode-serialised payloads.
- Collect multi-frame responses into a single buffer for snapshot-style assertions.
- Capture log output during tests with a lightweight logger guard.
Quick start
use WireframeApp;
use ;
async
Integration helpers
The integration_helpers module provides shared building blocks for
integration tests, including a default envelope type, an app factory fixture,
and a helper for binding to an unused local port.
use WireframeServer;
use ;
Running the tests
cargo test -p wireframe_testing
The command exercises the helpers in isolation. Run it before publishing
changes to ensure the test fixtures continue to match the main wireframe
crate's expectations.