Repository navigation
Release v4.2.0
Scenarios can start from reusable given contexts, like the given classes of the C# specs.
Added
Cratis.Chronicle.Testing.Given: a module that holds the facts several specs start from, named for the situation (an_open_account), kept in agiven/folder beside the specs.given: [Context]onEventScenario,ReadModelScenarioandReactorScenarioapplies contexts before the spec's ownsetup_all;given/2applies a context (a module,{module, argument}or a function) in a pipeline, and contexts compose.setup: {module, function}prepares what a spec needs around the kernel (a fake started withstart_supervised!/1) before the contexts run.mix testignores thegiven/scripts throughtest_ignore_filters.