All Versions
37
Latest Version
Avg Release Cycle
23 days
Latest Release
327 days ago

Changelog History
Page 3

  • v0.2.0-beta.2_ Changes

    September 16, 2019

    ๐Ÿ—„ Deprecated ..........

    • Method Generator.randoms(Long) the generator should generate single values, not a sequence.

    โž• Added .....

    • (Breaking) method generate(Random): T in interface Generator to generate single value.
    • checkForAll. An alternative to forAll allowing to use assertion (throw in case of error) instead of returning a boolean. It can be especially helpful to more descriptive message about what is wrong.
    • ๐Ÿ—„ Generator.randomSequence extension function to replace the deprecated Generator.randoms(Long): Sequence<T>
  • v0.2.0-beta.2 Changes

    September 16, 2019

    ๐Ÿ—„ Deprecated

    • Method Generator.randoms(Long) the generator should generate single values, not a sequence.

    โž• Added

    • (Breaking) method generate(Random): T in interface Generator to generate single value.
    • checkForAll. An alternative to forAll allowing to use assertion (throw in case of error) instead of returning a boolean. It can be especially helpful to more descriptive message about what is wrong.
    • Generator.randomSequence extension function to replace the deprecated Generator.randoms(Long): Sequence<T>
  • v0.2.0-beta.1_ Changes

    September 15, 2019

    ๐Ÿ”„ Changed .......

    • Wrap exceptions thrown by the properties so that an helpful message can be displayed (number of attempts, arguments, etc.)

    โšก๏ธ Dependencies Updated ....................

    • Kotlin (from 1.3.41 to 1.3.50)
  • v0.2.0-beta.1 Changes

    September 15, 2019

    ๐Ÿ”„ Changed

    • Wrap exceptions thrown by the properties so that an helpful message can be displayed (number of attempts, arguments, etc.)

    โšก๏ธ Dependencies Updated

    • Kotlin (from 1.3.41 to 1.3.50)
  • v0.2.0._ Changes

    November 19, 2019

    ๐Ÿ—„ 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)
  • v0.1.0 Changes

    July 28, 2019

    โž• Added

    • StringCharSets object with numeric, alphaLowerCase, alphaUpperCase, alpha and alphaNumeric. Sets of character to easily configure the string generator.

    • 0๏ธโƒฃ kwik.iterations system property to globally define a default number of iteration.

    Modules extracted from core

    • ๐Ÿšš Generator API moved to generator-api module (artifacts generator-api-common and generator-api-jvm)
    • ๐Ÿšš Generators for types of the kotlin standard library is moved to [generator-stdlib]{.title-ref} module (artifacts generator-stdlib-common and generator-stdlib-jvm)
    • ๐Ÿšš The property evaluation is moved to [evaluator]{.title-ref} (artifacts evaluator-common and evaluator-jvm)

    NOTE: The module core remains as an alias of all the modules above. So it is still easy to get started with Kwik by simply adding core as a dependency

    ๐Ÿ“ฆ Package names changed (Breaking)

    ๐Ÿ“ฆ The packages have been renamed, and classes/files have been moved to ๐Ÿ‘€ reflect their new module (see Modules extracted from core)

    • (Breaking) The content com.github.jcornaz.kwik.generator as been moved to com.github.jcornaz.kwik.generator.stdlib
    • (Breaking) The content com.github.jcornaz.kwik as been splitted into com.github.jcornaz.kwik.generator.api and com.github.jcornaz.kwik.evaluator

    โšก๏ธ Dependencies Updated

    • Kotlin (from 1.3.40 to 1.3.41)
  • v0.1.0-beta.1_ Changes

    July 01, 2019

    โž• Added .....

    • (Breaking) PropertyEvaluationContext available as a type-receiver in property evaluation
    • skipIf function on PropertyEvaluationContext allowing to skip a property evaluation for some specific set of input
    • Few aliases to get common generators:
      • positiveInts, naturalInts, negativeInts and nonZeroInts
      • positiveLongs, naturalLongs, negativeLongs and nonZeroLongs
      • positiveFloats, negativeFloats and nonZeroFloats
      • positiveDoubles, negativeDoubles and nonZeroDoubles
      • nonEmptyStrings and nonBlankStrings
      • nonEmptyLists, nonEmptySets and nonEmptyMaps

    ๐Ÿ”„ Changed .......

    • โœ… Show test details in console only in case of success
    • ๐Ÿ‘Œ Improved exception message in case of falsified property (and introduce typed exception FalsifiedPropertyError

    โšก๏ธ Dependencies Updated ....................

    • Kotlin (from 1.3.31 to 1.3.40)
  • v0.1.0-beta.1 Changes

    July 01, 2019

    โž• Added

    • (Breaking) PropertyEvaluationContext available as a type-receiver in property evaluation

    • skipIf function on PropertyEvaluationContext allowing to skip a property evaluation for some specific set of input

    • Few aliases to get common generators:

      • positiveInts, naturalInts, negativeInts and nonZeroInts
      • positiveLongs, naturalLongs, negativeLongs and nonZeroLongs
      • positiveFloats, negativeFloats and nonZeroFloats
      • positiveDoubles, negativeDoubles and nonZeroDoubles
      • nonEmptyStrings and nonBlankStrings
      • nonEmptyLists, nonEmptySets and nonEmptyMaps

    ๐Ÿ”„ Changed

    • โœ… Show test details in console only in case of success
    • ๐Ÿ‘Œ Improved exception message in case of falsified property (and introduce typed exception FalsifiedPropertyError

    โšก๏ธ Dependencies Updated

    • Kotlin (from 1.3.31 to 1.3.40)
  • v0.1.0-alpha.4_ Changes

    June 10, 2019

    โž• Added .....

    • filter operator for generators
    • (Breaking) samples property in the Generator interface to improve management of the value samples (edge-cases)
    • forAll non-inline function, allowing to hide implementation details.
    • ๐Ÿ”€ + operator for generator, allowing to merge 2 operators. Example: nonZeroInts() = ints(max = -1) + ints(min = 1)

    ๐Ÿ”„ Changed .......

    • (Breaking) Renamed arguments from and until of floats and doubles generators for more consistency with the int and long generators
    • (Breaking) Make the lambda of forAll crossinline, to allow usage of a non-inline function and hide implementation details.
    • Now the size probability for strings a collections generators is similar for all sizes. Instead, they have empty and singletons instances as samples
    • combine and combineWith now start by a combination of the source generators and will randomly add samples in the random generations.
    • Prevent error when passing a big min size/length without a max size/length for collection and strings generators

    โœ‚ Removed .......

    • (Breaking) ratio argument from the withSamples and withNull operators
  • v0.1.0-alpha.4 Changes

    June 10, 2019

    โž• Added

    • filter operator for generators
    • (Breaking) samples property in the Generator interface to improve management of the value samples (edge-cases)
    • forAll non-inline function, allowing to hide implementation details.
    • ๐Ÿ”€ + operator for generator, allowing to merge 2 operators. Example: nonZeroInts() = ints(max = -1) + ints(min = 1)

    ๐Ÿ”„ Changed

    • (Breaking) Renamed arguments from and until of floats and doubles generators for more consistency with the int and long generators
    • (Breaking) Make the lambda of forAll crossinline, to allow usage of a non-inline function and hide implementation details.
    • Now the size probability for strings a collections generators is similar for all sizes. Instead, they have empty and singletons instances as samples
    • combine and combineWith now start by a combination of the source generators and will randomly add samples in the random generations.
    • Prevent error when passing a big min size/length without a max size/length for collection and strings generators

    โœ‚ Removed

    • (Breaking) ratio argument from the withSamples and withNull operators