Skip to content

trading_data: integration tests of dag, facade and derivatives in one binary each - #63

Merged
valeratrades merged 1 commit into
mainfrom
one-test-binary
Nov 17, 2026
Merged

valeratrades merged 1 commit into
mainfrom
one-test-binary

Conversation

@valeratrades

Copy link
Copy Markdown
Contributor

Binaries: trading_data_dag 12 -> 2, trading_data 6 -> 2 (it + fuzz), trading_data_derivatives 3 -> 1. Skipped on purpose: trading_data_macros (3; demand and graph both define a Live node whose name sits in inline SHAPE snapshots), trading_data_core (2; its klines test does not compile on the default branch: expected trading_data_core::klines::Ohlc, found Ohlc).

Special cases: #[node] leaves a crate-root macro_export shim per node, so node type names must be unique per binary. Renamed in test code only: dag diamond::Level -> DiamondLevel, buffer's nested Live -> BufferLive, facade book_rewind's GatedBook/Hot/Mid -> RewindBook/RewindHot/RewindMid (none appears in a snapshot). dag's internal_latch stays its own target (autotests = false): its Deprec/Ticks collide with latch's and both appear in inline snapshots. fuzz stays its own target: its corpus is versioned by hashes of its own source (include_str!) and keyed by module-path-bearing type names. The facade's facade_surface snapshot moved to tests/it/snapshots/it__facade_surface__...

Tests: cargo nextest run -p trading_data_dag -p trading_data -p trading_data_macros -p trading_data_derivatives --all-features, 83/83 before and after, identical modulo prefix. Workspace-wide runs do not build on the default branch (core's klines test, examples/simple).

🤖 Generated with Claude Code

… binary each

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@valeratrades
valeratrades merged commit 4dbf9de into main Nov 17, 2026
14 of 19 checks passed
@valeratrades
valeratrades deleted the one-test-binary branch November 17, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant