-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Migrate integration tests from individual crates to eventcore-examples and update them to use the projection-based testing pattern.
Context
Per ADR-031 and ADR-032:
- Integration tests should verify results via projections (using
EventCollector) - Integration tests belong in
eventcore-examplescrate - Unit tests stay inline with source code
Tests to Migrate
From eventcore/tests/:
I-001-single_stream-command_test.rsI-003-retry_policy_test.rsI-004-multi_stream_atomic_test.rsI-007-dynamic_stream_discovery_test.rsprojection_runner_test.rsprojection_event_retry_config_test.rsprojection_poll_retry_test.rs
From eventcore-macros/tests/:
I-006-command_derive_macro_test.rs
Migration Steps per Test
- Move file to
eventcore-examples/tests/ - Update imports to use public APIs only
- Replace
store.read_stream()withEventCollector+run_projection() - Verify test still passes
Dependencies
- Implement EventCollector projector in eventcore-testing (ADR-031) #278 - EventCollector must be implemented first
- Create eventcore-examples crate (ADR-032) #279 - eventcore-examples crate must exist first
Parent Issue
Sub-issue of #272
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request