Skip to content

2.0.0 - New run limit

Latest

Choose a tag to compare

@x-sheep x-sheep released this 19 Aug 11:01
f5b24d3

A generator that doesn't produce valid results will now fail the test instead of spinning indefinitely.

New features:

  • An overload of Generator.run has been added to include a maximum amount of attempts.
  • A new Test trait .maximumAttempts(Int) has been added to control the amount of generator attempts before a test fails.

Breaking changes:

  • Generators with low success rates might cause previously passing tests to fail. If this happens, use the new Test trait to increase the amount of attempts from the default value of 10000 to a higher amount (e.g. Int.max).