Skip to content

Releases: dogmatiq/testkit

Version 0.21.0

24 Apr 19:39
v0.21.0
bf4a29e

Choose a tag to compare

Version 0.21.0 Pre-release
Pre-release

Added

  • fact.Logger now includes the aggregate or process instance description in log output, when provided by the handler's root implementation.
  • Added Ended bool field to fact.MessageLoggedByProcess.

Changed

  • Bumped Dogma to v0.22.0.
  • [BC] Removed unused fact.ProcessInstanceEndingReverted.

Version 0.20.1

06 Apr 09:46
v0.20.1
1e6b306

Choose a tag to compare

Version 0.20.1 Pre-release
Pre-release

Added

  • Added support for dogma.WithIdempotencyKey().
  • Added support for dogma.WithEventObserver().

Changed

  • [BC] Updated CommandExecutorInterceptor to receive []dogma.ExecuteCommandOption.
  • Bumped Dogma to v0.20.0.

Version 0.20.0

16 Dec 22:23
v0.20.0
cc5cac6

Choose a tag to compare

Version 0.20.0 Pre-release
Pre-release
  • [BC] Bumped Dogma to v0.19.0.

Version 0.19.0

14 Sep 07:50
v0.19.0
c1e376f

Choose a tag to compare

Version 0.19.0 Pre-release
Pre-release

Changed

  • [BC] Bumped Dogma to v0.16.0.
  • Use enginekit/config instead of configkit.

Version 0.18.1

05 Oct 11:02
v0.18.1
19c54bb

Choose a tag to compare

Version 0.18.1 Pre-release
Pre-release

Changed

  • Use enginekit/message instead of configkit/message.
  • It is no longer possible to (mis-)use a single message type as both a pointer and a non-pointer. If a type implements dogma.Command, dogma.Event, or dogma.Timeout using pointer receivers then a pointer type must be used; otherwise, a non-pointer type must be used.

Version 0.18.0

03 Oct 03:05
v0.18.0
216e22e

Choose a tag to compare

Version 0.18.0 Pre-release
Pre-release

Added

  • Added Not() expectation, which negates a single expectation. Not() is functionally equivalent to using NoneOf() with a single argument, but produces more intuitive test reports.
  • Added CommandValidationScope(), EventValidationScope(), and TimeoutValidationScope() to help when testing message validation logic.

Version 0.17.2

24 Sep 23:05
v0.17.2
3dd93f1

Choose a tag to compare

Version 0.17.2 Pre-release
Pre-release

Fixed

  • Fix argument type of ToRecordEvent() and ToRecordEventOfType().

Version 0.17.1

24 Sep 22:30
v0.17.1
2e80750

Choose a tag to compare

Version 0.17.1 Pre-release
Pre-release

Fixed

  • Fixed issue that caused an empty SUGGESTIONS section to be printed on test reports in some circumstances.
  • ToExecuteCommandMatching(), ToOnlyExecuteCommandsMatching(), ToRecordEventMatching() and ToOnlyRecordEventsMatching() now properly report impossible assertions when the predicate's argument type is not a recognized message.

Version 0.17.0

20 Aug 23:46
v0.17.0
b6a0d2f

Choose a tag to compare

Version 0.17.0 Pre-release
Pre-release

Added

  • Added ReportGenerationContext to hold information required when generating test reports.
  • Added Test.Annotate() to add human-readable annotations to values within test reports.

Changed

  • [BC] Changed Predicate.Report() to accept a ReportGenerationContext instead of individual arguments.

Version 0.16.0

17 Aug 05:05
v0.16.0
23e435c

Choose a tag to compare

Version 0.16.0 Pre-release
Pre-release

Changed

  • Bumped Dogma to v0.14.0, which involved removing any calls to the TimeoutHint() method on the handler interfaces, which has been removed.
  • ToExecuteCommandMatching() and ToRecordEventMatching() now accept predicate functions with a more specific argument type than dogma.Command and dogma.Event, respectively. Any message that does not match the argument type of the predicate is ignored.
  • ToOnlyExecuteCommandsMatching() and ToOnlyRecordEventsMatching() now accept predicate functions with a more specific argument type than dogma.Command and dogma.Event, respectively. Any message that does not match the argument type of the predicate is considered a failure.

Fixed

  • Fixed poor wording of ToOnlyExecuteCommandsMatching() and ToOnlyRecordEventsMatching() failure reports when no messages were matched.
  • Fixed a few swapped references to dogma.Command and dogma.Event which were aliases preior to Dogma v0.14.0.