
A tool for native generation of template code for testing in Swift.
Repo ozontech/TestingMacroCollection, read from GitHub 19 min ago. ozontech has not joined Take My Repo.
nonisolated(unsafe) modifiers for properties and methods in mocks.Learn more about migration to version 4.0.0 in the MIGRATION.md file.
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.
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.
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>.