Skip to content

v0.8.0

Choose a tag to compare

@ohbarye ohbarye released this 23 Nov 03:12
· 26 commits to main since this release
26dc3e6
  • [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 change Pbt.one_of(*arbitraries) to select uniformly among arbitraries with contextual shrinking #70
  • Add Pbt.frequency weighted generators with contextual lazy shrink trees (Arbitrary::Sample) #61
  • Add Pbt.statistics for reproducible generator distribution inspection #62
  • Allow Arbitrary#map without an unmapper and with block syntax (arb.map { |v| ... }), shrinking via Sample provenance #71
  • Add 3-valued Arbitrary#cover?(value) (including FloatArbitrary for Pbt.float) and RunnerIterator same_failure? / shrink_case hooks #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 FilterArbitrary generation retries with max_attempts: (raising Pbt::Arbitrary::FilterExhaustedError) to prevent infinite loops #75
  • Improve array shrinking (continue element shrinking at min_length and support non-contiguous element deletion) and fix Pbt.nat default max #76
  • Add Pbt.assume precondition helper with max_skips guard (Pbt::TooManySkipsError) and RunDetails#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

Full Changelog: v0.7.0...v0.8.0