jqwik v1.3.2 Release Notes

Release Date: 2020-07-02 // almost 4 years ago
  • ๐Ÿ†• New and Enhanced Features

    โž• Added Arbitrary.dontShrink()

    โž• Added SetArbitrary.mapEach()

    โž• Added SetArbitrary.flatMapEach()

    โž• Added ListArbitrary.mapEach()

    โž• Added ListArbitrary.flatMapEach()

    โž• Added Arbitraries.just(aConstant) and deprecated Arbitraries.constant(aConstant).
    ๐Ÿ‘€ Most other PBT libraries seem to use just for this functionality.

    โž• Added programmatic access to JUnit 5 platform reporting

    ๐Ÿ’ฅ Breaking Changes

    Introduced StreamableArbitrary hierarchy:

    • Arbitrary.set() now has return type net.jqwik.api.arbitraries.SetArbitrary
    • Arbitrary.list() now has return type net.jqwik.api.arbitraries.ListArbitrary
    • Arbitrary.stream() now has return type net.jqwik.api.arbitraries.StreamArbitrary

    - Arbitrary.iterator() now has return type net.jqwik.api.arbitraries.IteratorArbitrary

    Arbitraries.maps(...) now has return type net.jqwik.api.arbitraries.MapArbitrary

    ๐Ÿšš net.jqwik.api.lifecycle.Reporter moved to net.jqwik.api.Reporter

    ๐Ÿ› Bug Fixes

    ๐Ÿ‘ป Reporting samples with circular dependencies does no longer throw an exception

    โœ… Reporting test failure due to exception without message
    โœ… no longer leads to ignored test

    Reporting shrunk samples now report the actual sample and not a freshly generated one