Repository navigation
Release v1.5.0
A spec can now state one behavior in the shape of a Specification, with the same should_* vocabulary as the C# specs.
Added
Cratis.Arc.Test.CommandScenarioandCratis.Arc.Test.QueryScenario: given events, execute the command or query once as a principal, then oneshould_*expectation per test (should_be_successful,should_not_be_authorized,should_have_validation_errors,should_have_constraint_violation,should_have_appended,should_return_items, ...). They run the real pipeline against Chronicle's in-memory kernel and start it once per spec module, or once per test withlifecycle: :per_test.Cratis.Arc.Test.Should: the counterpart of theShouldextensions of Cratis.Specifications (should_equal,should_contain_only,should_contain_single_item,should_match,should_be_of_type, comparisons and ranges). The functions take the value first and return it, so they pipe.- Specs in
for_*/when_*folders with no_testsuffix: this project's ownmix.exsshows thetest_load_filtersthat finds them, and the testing documentation explains where specs live.