Epic: Event sourcing test coverage #23

Open
opened 2026-03-14 23:53:09 +00:00 by freemo · 0 comments
Owner

Background

The event sourcing system has no working tests. A feature file exists (event_sourcing.feature) but the system is untestable with event sourcing disabled by default.

Demonstrable Outcome

Comprehensive BDD test coverage for all event sourcing components: event store, commands, handlers, aggregates, projections, and the dual-write integration path.

Acceptance Criteria

  • Unit tests for the consolidated event store (store, load, snapshot, fallback)
  • Unit tests for all 16 commands with validation
  • Unit tests for all command handlers and aggregate methods
  • Unit tests for all 3 projectors
  • Integration tests for the dual-write path (GDBM + event store)
  • Coverage >= 85% for all event sourcing code
## Background The event sourcing system has no working tests. A feature file exists (`event_sourcing.feature`) but the system is untestable with event sourcing disabled by default. ## Demonstrable Outcome Comprehensive BDD test coverage for all event sourcing components: event store, commands, handlers, aggregates, projections, and the dual-write integration path. ## Acceptance Criteria - [ ] Unit tests for the consolidated event store (store, load, snapshot, fallback) - [ ] Unit tests for all 16 commands with validation - [ ] Unit tests for all command handlers and aggregate methods - [ ] Unit tests for all 3 projectors - [ ] Integration tests for the dual-write path (GDBM + event store) - [ ] Coverage >= 85% for all event sourcing code
freemo self-assigned this 2026-03-15 04:25:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: aethyr/Aethyr#23
No description provided.