Tangle Testing Framework
A lightweight testing framework for Tangle blueprints that provides a complete test environment with minimal setup.
Architecture
The framework consists of three main components:
TangleTestHarness
The main test harness that manages the complete test infrastructure. It handles:
- Local node setup and management
- Key/signer initialization
- MBSM deployment
- Service deployment and configuration
- Job execution and verification
TangleTestEnv
The test environment implementation that manages blueprint runners and event handlers. It's used internally by the harness to:
- Initialize event handlers
- Manage job execution
- Handle test-specific configurations
Blueprint Context
Your blueprint-specific context (e.g. MyContext
) that holds the state needed by your event handlers.
Usage Example
async