Skip to content

Tags: ozontech/TestingMacroCollection

Tags

3.1.0

Toggle 3.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Release 3.1.0 (#2)

* Release 3.1.0

* 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>`.

---------

Co-authored-by: Golovin Dmitrii Mikhaylovich <dmitrgolovin@ozon.ru>

3.0.1

Toggle 3.0.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
3.0.1

Rename macro target

3.0.0

Toggle 3.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Initial Commit