Skip to content

Release v1.5.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 11:55
9904633

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.CommandScenario and Cratis.Arc.Test.QueryScenario: given events, execute the command or query once as a principal, then one should_* 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 with lifecycle: :per_test.
  • Cratis.Arc.Test.Should: the counterpart of the Should extensions 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 _test suffix: this project's own mix.exs shows the test_load_filters that finds them, and the testing documentation explains where specs live.