Skip to content

Releases: dogmatiq/testkit

Version 0.17.0

20 Aug 23:46
v0.17.0
b6a0d2f
Compare
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
Compare
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.

Version 0.15.4

15 Aug 23:37
v0.15.4
41d4a3e
Compare
Choose a tag to compare
Version 0.15.4 Pre-release
Pre-release

Added

  • Added ToExecuteCommandType[T]() and ToRecordEventType[T]() expectations.

Deprecated

  • Marked ToExecuteCommandOfType() and ToRecordEventOfType() as deprecated. These functions will be removed in a future release; use the new generic versions instead.

Version 0.15.3

15 Aug 23:15
v0.15.3
f14db0e
Compare
Choose a tag to compare
Version 0.15.3 Pre-release
Pre-release

Changed

  • Use dogma.Command, Event and Timeout interfaces instead of dogma.Message where appropriate.

Fixed

  • Supress rendering of explanation and suggestions in test reports when a failed expectation is negated by NoneOf() (thanks [@sameaste92]).

Version 0.15.2

24 Jul 00:18
v0.15.2
369e3e5
Compare
Choose a tag to compare
Version 0.15.2 Pre-release
Pre-release

Fixed

  • Fixed log messages about disabled handlers to properly indicate why they are disabled.

Version 0.15.1

16 Jul 03:51
v0.15.1
136df37
Compare
Choose a tag to compare
Version 0.15.1 Pre-release
Pre-release

Added

  • Added support for Disable() method in dogmatiq/dogma v0.13.1.

Version 0.15.0

26 Jun 04:04
v0.15.0
ea3f2e8
Compare
Choose a tag to compare
Version 0.15.0 Pre-release
Pre-release

Added

  • Added Test.EnableHandlersLike() and DisableHandlersLike(), which enable/disable any handler with a name matches at least one of a given set of regular expressions.

Changed

  • [BC] Test.EnableHandlers() and DisableHandlers() will now panic when called with names of handlers that do not exist.

Version 0.14.0

26 Mar 01:10
v0.14.0
6e48260
Compare
Choose a tag to compare
Version 0.14.0 Pre-release
Pre-release

This release updates the testkit implementation to adhere to Dogma v0.13.0 interfaces.

Removed

  • [BC] Removed Test.EventRecorder().
  • [BC] Removed EventRecorder.
  • [BC] Removed EventRecorderInterceptor and InterceptEventRecorder().
  • [BC] Removed engine.EventRecorder.
  • [BC] Removed ActionScope.EventRecorder.

Version 0.13.12

04 Mar 20:09
v0.13.12
77cd6c7
Compare
Choose a tag to compare
Version 0.13.12 Pre-release
Pre-release

Changed

  • Improved wording of "empty instance ID" error message.

Fixed

  • Fixed issue that caused internal/mangled names of anonymous functions to be rendered in test reports on some platforms.

Version 0.13.11

09 Apr 02:08
v0.13.11
606b554
Compare
Choose a tag to compare
Version 0.13.11 Pre-release
Pre-release

This release updates the testkit implementation to adhere to Dogma v0.12.0 interfaces.