Repository navigation
v0.8.0
- [Breaking change] Drop support for Ruby 3.2 and earlier (EOL); Ruby 3.3 or later is now required, and Ruby 4.1.0-preview1 is added to CI #66
- [Breaking change] Split literal constant selection into
Pbt.constant_from(*choices)and changePbt.one_of(*arbitraries)to select uniformly among arbitraries with contextual shrinking #70 - Add
Pbt.frequencyweighted generators with contextual lazy shrink trees (Arbitrary::Sample) #61 - Add
Pbt.statisticsfor reproducible generator distribution inspection #62 - Allow
Arbitrary#mapwithout anunmapperand with block syntax (arb.map { |v| ... }), shrinking viaSampleprovenance #71 - Add 3-valued
Arbitrary#cover?(value)(includingFloatArbitraryforPbt.float) andRunnerIteratorsame_failure?/shrink_casehooks #72 - Document v1 Property DSL contract and fix positional Hash / strict lambda argument passing in
Check::Property#run#73 - Re-raise fatal exceptions (
SystemExit,SignalException,NoMemoryError) in runners without shrinking #74 - Bound
FilterArbitrarygeneration retries withmax_attempts:(raisingPbt::Arbitrary::FilterExhaustedError) to prevent infinite loops #75 - Improve array shrinking (continue element shrinking at
min_lengthand support non-contiguous element deletion) and fixPbt.natdefaultmax#76 - Add
Pbt.assumeprecondition helper withmax_skipsguard (Pbt::TooManySkipsError) andRunDetails#num_skips#77 - Note: the current
Pbt.stateful(model:, sut:)API is planned to be replaced with a redesigned DSL in v0.9.0 (#67).
What's Changed
- Add Dependabot configuration by @ohbarye in #45
- Bump the github-actions group with 3 updates by @dependabot[bot] in #46
- Bump ruby/setup-ruby from 1.299.0 to 1.300.0 in the github-actions group by @dependabot[bot] in #47
- Bump ruby/setup-ruby from 1.300.0 to 1.302.0 in the github-actions group by @dependabot[bot] in #48
- Bump ruby/setup-ruby from 1.302.0 to 1.305.0 in the github-actions group by @dependabot[bot] in #49
- Bump ruby/setup-ruby from 1.305.0 to 1.306.0 in the github-actions group by @dependabot[bot] in #50
- Bump the github-actions group across 1 directory with 2 updates by @dependabot[bot] in #52
- Bump the github-actions group across 1 directory with 3 updates by @dependabot[bot] in #54
- Bump the github-actions group across 1 directory with 3 updates by @dependabot[bot] in #57
- Bump ruby/setup-ruby from 1.321.0 to 1.323.0 in the github-actions group by @dependabot[bot] in #58
- Remove obsolete Ractor configuration pending guards by @ohbarye in #59
- Align stateful API documentation with v0.7.0 by @ohbarye in #60
- Test Ruby 4.1 preview and require Ruby 3.3+ by @ohbarye in #66
- Add weighted generators with contextual shrinking by @ohbarye in #61
- Add reproducible generator distribution statistics by @ohbarye in #62
- Evaluate bare Fiber predicate execution for v1 by @ohbarye in #65
- Add stateful PBT redesign research and implementation plan by @ohbarye in #68
- Bump the github-actions group with 2 updates by @dependabot[bot] in #69
- Split constant_from from one_of and make one_of choose arbitraries by @ohbarye in #70
- Allow Arbitrary#map without unmapper and with block syntax by @ohbarye in #71
- Add Arbitrary#cover? and RunnerIterator shrink_case/same_failure? hooks by @ohbarye in #72
- Document v1 Property DSL contract and align keyword-arg examples by @ohbarye in #73
- Re-raise fatal exceptions in runners and fix configuration_spec rollback by @ohbarye in #74
- Bound FilterArbitrary retry attempts to prevent infinite loops by @ohbarye in #75
- Add Pbt.assume precondition helper with max_skips guard by @ohbarye in #77
- Improve array shrinking and fix Pbt.nat default max by @ohbarye in #76
- Prepare v0.8.0 by @ohbarye in #78
New Contributors
- @dependabot[bot] made their first contribution in #46
Full Changelog: v0.7.0...v0.8.0