Skip to content

Release v1.6.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 13:58
5874e6c

Scenarios can start from reusable given contexts, like the given classes of the C# specs.

Added

  • Cratis.Arc.Test.Given: a module that holds the facts several specs start from, named for the situation (a_registered_author), kept in a given/ folder beside the specs.
  • given: [Context] on CommandScenario and QueryScenario applies contexts before the spec's own setup_all; given/2 applies 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 with start_supervised!/1, application environment) before the contexts run, so what they append can already reach it.
  • mix test ignores the given/ scripts through test_ignore_filters.