Files
kami 7558d32ad9 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)
2026-06-12 14:46:55 +04:00

20 lines
666 B
Groovy

plugins {
id 'java-library'
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.kotlin.plugin.serialization'
}
dependencies {
implementation(project(":core:events"))
implementation(project(":core:transitions"))
implementation(project(":core:approvals"))
implementation(project(":core:sessions"))
implementation(project(":core:tools"))
implementation(project(":core:inference"))
implementation(project(":core:context"))
implementation(project(":core:kernel"))
implementation(project(":core:validation"))
implementation(project(":infrastructure:persistence"))
}
tasks.named("koverVerify").configure { enabled = false }