Skip to content

Releases: ozontech/TestingMacroCollection

3.1.0

11 May 16:37
e1bc2d5

Choose a tag to compare

Added

  • Support for enumerations via the @Arbitrary macro. For the .static generation type, the case marked with @ArbitraryEnumStaticCase is used. For .dynamic, a random case is used.

  • Auxiliary @ArbitraryEnumStaticCase macro, which helps the @Arbitrary macro select an enumeration case for the static generation type.

  • Generation of an extension with the static .arbitrary() function via the Arbitrary macro.

  • Auxiliary @Empted macro for generating an empty collection by default in the @Arbitrary macro.

  • The accessModifier parameter for the @Arbitrary macro.

  • Support for typed errors in methods with throws for mocks.

  • Support for the @available attribute for @Mock properties and methods.

Technical changes

  • Added support for method overloading in @Mock and @AnyMockable.

  • The lower bound of the swift-syntax dependency is raised to version 601.0.0.

  • The @Mock and @Arbitrary macros are now wrapped in #if DEBUG ... #endif.

  • The @Empted macro can only be attached to Array and Set.

  • Removed redundant generation of default in switch for an enum with a single case in the @AutoEquatable macro.

Fixed

  • Computed properties of models are now ignored in the @Arbitrary macro.

  • Corrected the return value handling for a nested enum inside an extension generated by the @Arbitrary macro.

  • Fixed generation of arbitrary for deeply nested types, for example, One.Two.Three, in the @Arbitrary macro.

  • Added support for generic types within a generic clause, such as Result<T, Error>.

3.0.1

11 Sep 13:59
74933b6

Choose a tag to compare

3.0.1

  • Renamed the Macro target TestingMacros to OzonTestingMacros

3.0.0

02 Sep 14:48
28d715d

Choose a tag to compare

Initial Commit