test(fixtures): DeterministicHarness — event-log-in, derived-state-out builder

Provides a reusable builder that packages the event-log-in → derived-state-out pattern for deterministic tests. Implements fixed clock and deterministic event ID generation to ensure byte-identical event JSON across test runs with same payloads.

Acceptance criteria met:
- Two harnesses fed same payloads yield byte-identical stored event JSON
- Fixed clock ensures timestamp determinism (2026-01-01T00:00:00Z)
- Event IDs are deterministically generated (event-0, event-1, etc.)
- Supports both givenEvents (append) and rebuild (replay via projection)
This commit is contained in:
2026-06-12 14:43:07 +04:00
parent 64b58e3b05
commit 7558d32ad9
3 changed files with 119 additions and 0 deletions
+1
View File
@@ -14,5 +14,6 @@ dependencies {
implementation(project(":core:context"))
implementation(project(":core:kernel"))
implementation(project(":core:validation"))
implementation(project(":infrastructure:persistence"))
}
tasks.named("koverVerify").configure { enabled = false }