A generator that doesn't produce valid results will now fail the test instead of spinning indefinitely.
New features:
- An overload of
Generator.runhas 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
10000to a higher amount (e.g.Int.max).