fixture-monkey

Let Fixture Monkey generate test instances including edge cases automatically

APACHE-2.0 License

Stars
432

Bot releases are visible (Hide)

fixture-monkey - 1.0.18 Latest Release

Published by seongahjo 4 months ago

๐Ÿž Bug Fixes

Fix SimpleValueJqwikPlugin mismatching order with constructor and field #987 @Ting-Kim .

fixture-monkey - 1.0.17

Published by seongahjo 4 months ago

๐Ÿ’ New Features

  • Modify the way a value class is used to output arbitrary value #967 @this-is-spear

๐Ÿž Bug Fixes

  • Fix sealed interface set after thenApply #977
  • Fix insertFirstCandidateConcretePropertyResolvers option, the argument is inserted first #974

๐Ÿงช Experimental Features

  • Add Supporting Java Supplier Type #951 @mollder
  • Add SimpleValueJqwikPlugin for beginners. check out details here #980
fixture-monkey - 1.0.16

Published by seongahjo 6 months ago

๐Ÿž Bug Fixes

  • Fix register working on assignable type. #971

๐Ÿงช Experimental Features

  • Add resolve the candidate concrete type of container type. #969
    • Using new option pushExactTypePropertyCandidateResolver.
    • The default PropertyCandidateResolvers cannot be overridden by 1.0.16.
    • If you want to override, use the candidateConcretePropertyResolvers option in Plugin. For example, by default List resolves to ArrayList , Set resolves to HashSet.
fixture-monkey - 1.0.15

Published by seongahjo 7 months ago

๐Ÿ’ New Features

  • Add ConcreteTypeDefinition in ArbitraryProperty, deprecate getChildPropertiesByResolvedProperty and getChildPropertyListsByCandidateProperty which is added in 1.0.14. #944
  • Add a new Kotlin Exp expression for referencing root. ex. set(String::root, "expected") #922
  • Add an ArbitraryIntrospector KotlinAndJavaCompositeArbitraryIntrospector to to assist in the creation of Kotlin classes that reference Java classes. #948 @jinia91

๐Ÿž Bug Fixes

  • Fix setting a child of a concrete type to an abstract type. #960
fixture-monkey - 1.0.14

Published by seongahjo 8 months ago

๐Ÿ’ New Features

  • Add supporting value class with the private constructor. #911 @msugo1
  • Add supporting for sealed class and sealed interface in JDK17. #921

โš ๏ธ Deprecated

  • Deprecate nullInject and childPropertyListsByCandidateProperty properties in ObjectNode. They would be moved to ArbitraryProperty. #932
fixture-monkey - 1.0.13

Published by seongahjo 9 months ago

๐Ÿ’ New Features

  • Change regular expression generation library to RgxGen. #870
  • Add InterfacePlugin supports abstract class by abstractClassExtends option. #892

๐Ÿž Bug Fixes

  • Fix setLazy with value wrapped by Just would not be manipulated. #900
  • Fix missing required PropertyGenerator within introspectors. #908
fixture-monkey - 1.0.12

Published by seongahjo 9 months ago

๐Ÿž Bug Fixes

  • Fix generating an object with the value class property. #887
fixture-monkey - 1.0.11

Published by seongahjo 9 months ago

๐Ÿž Bug Fixes

  • Fix mutation of a generated object by FieldReflectionArbitrarytIntrospector, BeanArbitraryIntrospector. #882
fixture-monkey - 1.0.10

Published by seongahjo 9 months ago

๐Ÿ’ New Features

  • Add handling when using an ArbitraryIntrospector that does not match the property type. Add a log entry if the property is of a container type, and throw an exception if the property is of a concrete type. #877
  • Refactor does not throw exception when it cannot generate, the next ArbitraryIntrospector will be used. #879
  • Add better support Kotest by modifying giveMeArb more Kotlin-like, by adding setArb API. #880

๐Ÿž Bug Fixes

  • Fix setting object field by any other type. #876
fixture-monkey - 1.0.9

Published by seongahjo 9 months ago

1.0.9

  • Fix addExceptGenerateClass option affected by specific ArbitraryIntrospector
  • Add customizeProperty API in ArbitraryBuilder to customize generated value
  • Add customizing Wildcard type in an option
fixture-monkey - 1.0.8

Published by seongahjo 9 months ago

1.0.8

  • Add more detailed message if generation fails.
  • Fix setting child type when generating parent type.
fixture-monkey - 1.0.7

Published by seongahjo 10 months ago

1.0.7

  • Fix fixture-monkey-kotlin module supporting Jdk 8
fixture-monkey - 1.0.6

Published by seongahjo 10 months ago

1.0.6

  • Fixture Monkey will now infer the properties when you generate a type by specific ArbitraryIntrospector that needs certain type of properties.
    • Check out the comment in ArbitraryGenerator#getRequiredPropertyGenerator.
  • Add InterfacePlugin to add detailed interface options.
    • interfaceImplements option
    • useAnonymousArbitraryIntrospector option.
  • Add generating a instance of Kotlin type with the private constructor @jinia91

Deprecated

  • The interfaceImplements option in FixtureMonkeyBuilder is now deprecated. It will be moved in InterfacePlugin.
fixture-monkey - 1.0.5

Published by seongahjo 11 months ago

1.0.5

  • Fix generating an type without lombok using ConstructorPropertiesArbitraryIntrospector
  • Fix FailoverIntrospector catching an exception thrown by declaring a CombinableArbitrary
fixture-monkey - 1.0.4

Published by seongahjo 11 months ago

1.0.4

  • Add generating record using canonical constructor by default
fixture-monkey - 1.0.3

Published by seongahjo 11 months ago

1.0.3

  • Fix generating decimal at least 0 with kotest-property engine.
  • Add a new option pushJavaConstraintGeneratorCustomizer for customizing the JavaConstraintGenerator option.
  • Add supporting parallel execution with jqwik engine.
fixture-monkey - 1.0.2

Published by seongahjo 11 months ago

1.0.2

  • Fix generating a record instance with 2 or more constructors.
fixture-monkey - 1.0.1

Published by seongahjo 11 months ago

1.0.1

  • Add Exp DSL resolving an array element of specific index.
fixture-monkey - 1.0.0

Published by seongahjo 11 months ago

1.0.0

  • Add instantiate as stable API.
  • Refactor Kotlin constructor instantiate using Kotlin constructor.

Experimental

  • Add a new property selector javaGetter replacing String expression with type-safe method reference.
fixture-monkey - 0.6.13

Published by seongahjo 12 months ago

0.6.13

  • Add generating an instance of inner class in Java

Experimental Feature

  • Refactor factoryMethod adding a name of factory method.
Package Rankings
Top 18.62% on Repo1.maven.org
Badges
Extracted from project README
Build GitHub license
Related Projects