Overview
Test domain for the Algorithmic Trading Platform. Contains all test nodes: unit, integration, functional, and end-to-end tests.
Documents
Tests
Overview
The Tests domain tracks the test suite for the Algorithmic Trading Platform. Tests are classified by group and polarity.
Test Groups
| Group | Description |
|---|---|
| Unit | Tests for individual classes and functions in isolation |
| Integration | Tests for component interactions via the EventBus |
| Functional | End-to-end scenario tests (full platform pipeline) |
| E2E | External-facing tests (API, WebSocket) |
Test Polarity
| Polarity | Description |
|---|---|
| Positive | Verifies correct behavior under valid inputs |
| Negative | Verifies correct error handling under invalid inputs or edge cases |
Coverage Areas
- Strategy Engine: IStrategy protocol, MomentumStrategy, SmaCrossoverStrategy, backtest mode
- Risk Management Engine: IRiskCheck protocol, position/value/daily-loss checks
- Order Management System: order lifecycle, amend, cancel, repository injection
- Execution Simulator: fill at market price, IBrokerAdapter protocol
- Position Manager: position tracking, P&L calculation
- Market Data Feed Handler: adapter injection, tick emission
- Audit Log: event capture and query
- Platform integration: full pipeline from tick to position
Source
Test files: tests/