Jeremy D. Miller 8/3/2026

Declarative Testing Helper for Marten or Polecat Projections

Read Original

This article introduces EventProjectionScenario, a declarative testing API for Marten and Polecat projections. It allows developers to script sequences of event appends and document assertions, then execute them end-to-end. The scenario supports all projection lifecycles, including asynchronous ones, by automatically managing a projection daemon. Key features include batched commits, automatic stream ID generation, and assertion steps that run after projected data is up to date. The author seeks feedback and hints at future integration with 'Spec Driven Development' in the Critter Stack.

Declarative Testing Helper for Marten or Polecat Projections

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser