Skip to content

Releases: dogmatiq/testkit

Version 0.8.0

03 Nov 05:00
Compare
Choose a tag to compare
Version 0.8.0 Pre-release
Pre-release

Changed

  • [BC] Remove aggregate Create() and Exists() methods (complies with Dogma v0.8.0)

Version 0.7.0

02 Nov 01:21
Compare
Choose a tag to compare
Version 0.7.0 Pre-release
Pre-release

Added

  • Add Test.AdvanceTime(), ByDuration() and ToTime()
  • Add Test.Call()
  • Add assert.Nothing
  • Add engine.CommandExecutor
  • Add engine.EventRecorder
  • [BC] Add op parameter to assert.Assertion.Begin()

Removed

  • [BC] Remove Test.AdvanceTimeTo() and AdvanceTimeBy()
  • [BC] Remove verbose parameter assert.Assertion.BuildReport()
  • [BC] Remove RunnerVerbose() and Verbose() options
  • [BC] Remove Engine.ExecuteCommand() and RecordEvent()

Changed

  • The -v (verbose) option to go test no longer affects testkit's behavior, full logs are always rendered

Version 0.6.2

19 Oct 01:38
Compare
Choose a tag to compare
Version 0.6.2 Pre-release
Pre-release

Changed

  • Test.AdvanceTimeBy() and AdvanceTimeTo() can now be called without making any assertions by passing a nil assertion

Version 0.6.1

19 Oct 00:35
Compare
Choose a tag to compare
Version 0.6.1 Pre-release
Pre-release

Added

  • Add Exists() and HasBegun() methods to aggregate & process scopes

Version 0.6.0

12 Jun 00:22
Compare
Choose a tag to compare
Version 0.6.0 Pre-release
Pre-release

Changed

  • [BC] Renamed T to TestingT, to avoid conflicts with *testing.T when dot-importing
  • [BC] Renamed assert.T to S, to avoid conflicts with *testing.T when dot-importing

Version 0.5.0

11 Jun 05:50
Compare
Choose a tag to compare
Version 0.5.0 Pre-release
Pre-release

Added

  • [BC] Add assert.Assertion.End()
  • Add engine.Run() and RunTimeScaled()
  • engine.Engine now protects its internal state with a mutex, allowing concurrent use

Changed

  • [BC] assert.Should() now provides an assert.T to the user instead of checking the error return value
  • [BC] Rename assert.Assertion.Prepare() to Begin()
  • [BC] Add verbose parameter to assert.Assertion.BuildReport()

Version 0.4.0

04 Feb 04:50
Compare
Choose a tag to compare
Version 0.4.0 Pre-release
Pre-release

Added

  • Add assert.Should() for specifying user-defined assertions

Changed

  • [BC] Switched from enginekit to configkit for application configurations
  • [BC] Flatten fields from Envelope.Correlation directly into Envelope
  • Test logs and assertion reports now display the file and line number of the test operation

Removed

  • [BC] Removed the assert.CompositeAssertion type
  • [BC] Removed the assert.MessageAssertion type
  • [BC] Removed the assert.MessageTypeAssertion type

Fixed

  • assert.CommandExecuted() now renders the correct suggestions when it fails due to mismatched message role

Version 0.3.0

31 Oct 00:05
735f4ff
Compare
Choose a tag to compare
Version 0.3.0 Pre-release
Pre-release

Changed

  • Updated EngineKit to v0.8.0

Version 0.2.0

20 Oct 22:30
37b3e1e
Compare
Choose a tag to compare
Version 0.2.0 Pre-release
Pre-release
  • [BC] Rename StartTime() option to WithStartTime() for consistency

Version 0.1.1

18 Oct 02:42
4f1431f
Compare
Choose a tag to compare
Version 0.1.1 Pre-release
Pre-release
  • Add StartTime() test option to configure the initial time of the test clock