kwik v0.3.0-alpha.1_ Release Notes

Release Date: 2019-12-05 // about 2 months ago
  • Removed (Breaking) ......................

    • 🚚 Generator.samples property has been removed. Now the generator have to have a probability to generate the edge cases in generate. The recommended option when building a generator, is to use withSamples

    • 🚚 Generator.randoms function has been removed. Generator.generate or Generator.randomSequence should be used instead.

    🔄 Changed .......

    All generators no longer statically provide samples. Instead they have a good probability to generate edge cases.

    • (Breaking binary) withSample now takes a probability argument, and include the samples in the generation

    ➕ Added .....

    • ensureAtLeastOne utility in evaluation context, that will force property evaluation until a given predicate gets satisfied

    ⚡️ Dependencies Updated ....................

    • Kotlin (from 1.3.60 to 1.3.61)

Previous changes from v0.2.0

  • 🗄 Deprecated

    • samples property in Generator interface. (Samples are about to be included in generation of generate)
      One should use withSamples and frequency instead.

    ➕ Added

    • 🏗 andThen operator to make easier building complex generation pipeline
    • frequency combinator, allowing to create a frequency-parametrized generator

    ⚡️ Dependencies Updated

    • Kotlin (from 1.3.50 to 1.3.60)