Declarative Testing Helper for Marten or Polecat Projections
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser