Skip to content

v0.139.2

Compare
Choose a tag to compare
@adamluzsi adamluzsi released this 16 Jun 07:19
· 69 commits to main since this release
  • Random Interface Values and Subtypes: The 'random' package was updated to allow empty interface values and subtypes.
  • Assertion Improvements: The behaviour of 'assert.NotEmpty' was updated to behave the same as 'assert.NotNil'. The 'assert.NotNil' function was also updated only to check if the value is not nil, avoiding potential race conditions. A new visitor pattern was introduced to support method-based comparison using the 'assert' package, allowing custom equality checkers to be registered.
  • Clock Time Format: The clock was updated to return time in local format.
  • Spec Based Suites: The 'testcase.AsSuite' spec option was introduced, allowing you to provide a name to enhance convenience while using a Spec as a testing suite. Support was also added for the OpenSuite interface with Spec to enable non-testcase specific suite generation.
  • Pretty Print and Diff: The 'pp.Diff' function was updated to behave like 'pp.PP' for convenience.
  • Random Contract Generation: A new feature was introduced to generate coherent contact details randomly.
  • Assertion Helper: The 'assert.OneOf' assertion helper was added.
  • Test Ordering: Test ordering was temporarily removed to comply with changes in go1.20.
  • Fault Injection: Support was added for manual fault injection.
  • Random Value Generation: Improvements were made to generating random values, including the ability to generate deterministic random UUIDs in tests.
  • Variable Binding: Improvements were made to 'Var.Bind', including preventing it from doing anything when the variable is already bound to the context.
  • Error Feedback: Improved error feedback was provided for a potentially reused 'testcase#Var.ID'.
  • Time Manipulation: The ability to unfreeze time with 'timecop' was added.