Skip to content

v2.3.0

Choose a tag to compare

@rasuvaeff rasuvaeff released this 01 Aug 22:17
· 48 commits to master since this release
d9df7f2

Generator catalog, explicit examples and seed persistence (Waves 5–6, excluding
in-body draw). Additive, no BC breaks; existing seed sequences are unchanged.

  • Add domain arbitraries: Gen::ipv4(), Gen::email(), Gen::url(),
    Gen::json() / Gen::jsonString(), and Gen::regex() /
    Gen::stringMatching(). regex compiles a regular-expression subset
    (literals, ., classes [...], \d\w\s and negations, quantifiers
    * + ? {n} {n,} {n,m}, alternation, groups) into ordinary combinators, so
    matches shrink through the existing trees. Unsupported constructs (anchors
    other than a single leading ^/trailing $, backreferences, lookaround,
    named/inline groups, flags) throw, naming the construct.
  • Add explicit examples: #[Property(examples: 'method')] or a
    <testMethod>Examples convention method returns fixed positional argument
    tuples, each run before the random inputs and not shrunk. A failing example is
    reported via ExampleViolationException.
  • Add opt-in regression replay: when PROPERTY_DB names a directory, a
    falsified property records its failing seed and re-runs it first on the next
    run (unless the attribute pins a seed). Only the seed is stored.
  • In-body draw (Gen::draw(), roadmap T2.5) is deferred to 2.4.0: it needs a
    replay-tape shrink mechanism that the per-arbitrary tree model lacks.