Fixture Monkey Versions Save

Let Fixture Monkey generate test instances including edge cases automatically

1.0.6

4 months ago

๐Ÿ’ New Features

  • Fixture Monkey now infers properties when generating a type using a specific ArbitraryIntrospector that requires certain types of properties #846
    • Refer to the comment in ArbitraryGenerator#getRequiredPropertyGenerator
  • Support generating an instance of a Kotlin type with a private constructor #848 - @jinia91
  • Introduce InterfacePlugin featuring detailed interface options #845
    • interfaceImplements option
    • useAnonymousArbitraryIntrospector option.

โš ๏ธ Deprecated

  • The interfaceImplements option in FixtureMonkeyBuilder is now deprecated. It will be moved in InterfacePlugin #845

1.0.5

5 months ago

๐Ÿž Bug Fixes

  • Fix ConstructorPropertiesArbitraryIntrospector to be able to generate a type that does not use Lombok #840
  • Fix FailoverIntrospector to catch the exception thrown when declaring a CombinableArbitrary #841

1.0.4

5 months ago

๐Ÿ’ New Features

  • Record types are generated using the canonical constructor by default #834

1.0.3

5 months ago

๐Ÿ’ New Features

  • Introduce a new option pushJavaConstraintGeneratorCustomizer to customize the JavaConstraintGeneratoroption #830
  • Parallel execution is now supported with the jqwik engine #826

๐Ÿž Bug Fixes

  • Fix the generation of decimal values, ensuring a minimum of 0, with the kotest-property engine #829

1.0.2

6 months ago

๐Ÿž Bug Fixes

  • Fix generating a record instance with 2 or more constructors #823

1.0.1

6 months ago

๐Ÿ’ New Features

  • Add Exp DSL resolving an array element at a specific index #820

1.0.0

6 months ago

๐Ÿ’ New Features

  • Add instantiate as stable API. #811
  • Kotlin object generation with instantiateBy constructor, now utilizes the provided Kotlin constructor #816

๐Ÿงช Experimental Features

  • Add a new property selector javaGetter, replacing String expression with type-safe method reference #813

0.6.13

6 months ago

0.6.13

  • Add generating an instance of inner class in Java

Experimental Feature

  • Refactor factoryMethod adding a name of factory method.

0.6.12

6 months ago

0.6.12

  • Fix setting Just in setLazy.
  • Fix a bug in validOnly operation in ArbitraryBuilder.
  • Fix a bug in addContainerType, addDecomposedContainerValueFactory option, which is not working for an implementation of option type.
  • Remove jqwik-kotlin dependency in fixture-monkey-kotlin module.
  • Deprecate FixtureMonkeyOptions dependency in ObjectPropertyGeneratorContext, ContainerPropertyGeneratorContext.
  • Add addDecomposedContainerValueFactory option.
  • Add giveMeExperimentalBuilder for experimental features.

Experimental Feature

  • Add a new ArbitraryBuilder operation instantiate, instantiateBy for Kotlin, which specifies how to instantiate a given type.
    • Providing a static method constructor() for specifying that it instantiates a given type by constructor
    • Providing a static method factoryMethod() for specifying that it instantiates a given type by factory method
    • Providing a static method field(), javaBeansProperty() that subsequently sets a property for both constructor(), factoryMethod()

0.6.11

7 months ago

0.6.11

  • Add kotest module. Using it as a runtime of generating primitive types.
  • Add supporting a custom validator in Javax, Jakarta Bean Validation.
  • Add PropertySelecotr as a super type of ExpressionGenerator to abstract how to reference a property.
  • Fix a bug in size Map in thenApply operation.
  • Add option to resolve a seed for deterministic re-runs.
  • Fix set a nested self reference object.